mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
SocketApi: Adjust the format of the mailto: URL
Minor tweaks that weren't actually an issue, but just in case.
This commit is contained in:
parent
9d818066a7
commit
7b58a82840
@ -44,7 +44,7 @@ bool Utility::openBrowser(const QUrl &url, QWidget *errorWidgetParent)
|
||||
|
||||
bool Utility::openEmailComposer(const QString &subject, const QString &body, QWidget *errorWidgetParent)
|
||||
{
|
||||
QUrl url(QLatin1String("mailto: "));
|
||||
QUrl url(QLatin1String("mailto:"));
|
||||
url.setQueryItems({ { QLatin1String("subject"), subject },
|
||||
{ QLatin1String("body"), body } });
|
||||
|
||||
|
||||
@ -518,7 +518,7 @@ void SocketApi::command_EMAIL_PRIVATE_LINK(const QString &localFile, SocketListe
|
||||
if (!url.isEmpty()) {
|
||||
Utility::openEmailComposer(
|
||||
tr("I shared something with you"),
|
||||
url.toString(),
|
||||
url.toString(QUrl::FullyEncoded),
|
||||
0);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user