Fixed re-encoding already encoded URLs, corrupting them.
BUG: 344910
This commit is contained in:
parent
d2e973b351
commit
5807ec0eb1
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ bool SharePlugin::receivePackage(const NetworkPackage& np)
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(tmpFile.fileName()));
|
QDesktopServices::openUrl(QUrl::fromLocalFile(tmpFile.fileName()));
|
||||||
}
|
}
|
||||||
} else if (np.has("url")) {
|
} else if (np.has("url")) {
|
||||||
QUrl url(np.get<QString>("url"));
|
QUrl url = QUrl::fromEncoded(np.get<QByteArray>("url"));
|
||||||
QDesktopServices::openUrl(url);
|
QDesktopServices::openUrl(url);
|
||||||
} else {
|
} else {
|
||||||
kDebug(debugArea()) << "Error: Nothing attached!";
|
kDebug(debugArea()) << "Error: Nothing attached!";
|
||||||
|
|
Loading…
Reference in a new issue