From 1c0c64e16c6fc5f95a62b23d50f7dd6d420ab48f Mon Sep 17 00:00:00 2001 From: Andy Kittner Date: Wed, 26 Jan 2011 01:47:17 +0100 Subject: [PATCH] Pass a properly encoded mailto: URL to the URL handler on windows --- src/gui/util/qdesktopservices_win.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gui/util/qdesktopservices_win.cpp b/src/gui/util/qdesktopservices_win.cpp index 783970b..dbff3d1 100644 --- a/src/gui/util/qdesktopservices_win.cpp +++ b/src/gui/util/qdesktopservices_win.cpp @@ -142,7 +142,7 @@ static bool launchWebBrowser(const QUrl &url) //pass the url as the parameter index = command.lastIndexOf(QLatin1String("%1")); if (index != -1){ - command.replace(index, 2, url.toString()); + command.replace(index, 2, QString::fromAscii(url.toEncoded())); } //start the process PROCESS_INFORMATION pi; -- 1.7.4.rc2.3.g60a2e.dirty