Fixed re-encoding already encoded URLs, corrupting them.

BUG: 344910
This commit is contained in:
Albert Vaca 2015-03-08 15:19:21 -07:00
parent d2e973b351
commit 5807ec0eb1

View file

@ -112,7 +112,7 @@ bool SharePlugin::receivePackage(const NetworkPackage& np)
QDesktopServices::openUrl(QUrl::fromLocalFile(tmpFile.fileName()));
}
} else if (np.has("url")) {
QUrl url(np.get<QString>("url"));
QUrl url = QUrl::fromEncoded(np.get<QByteArray>("url"));
QDesktopServices::openUrl(url);
} else {
kDebug(debugArea()) << "Error: Nothing attached!";