зеркало из https://github.com/nextcloud/desktop.git
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:
Родитель
9d818066a7
Коммит
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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче