From 7b58a8284090d8d46b79b22eeb02f40669c8bdf9 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 4 Jul 2017 16:43:17 +0200 Subject: [PATCH] SocketApi: Adjust the format of the mailto: URL Minor tweaks that weren't actually an issue, but just in case. --- src/gui/guiutility.cpp | 2 +- src/gui/socketapi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/guiutility.cpp b/src/gui/guiutility.cpp index f4b31a7af..0a3ee6f0f 100644 --- a/src/gui/guiutility.cpp +++ b/src/gui/guiutility.cpp @@ -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 } }); diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index ccfe5167e..b43d77a4a 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -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); } }