Fix Copy RsLink in Clipboard.

Spaces and specials characters are now encoded.
This commit is contained in:
Phenom 2016-10-22 15:17:49 +02:00
parent b8b78dd6cb
commit 46cf25d3aa

View File

@ -790,9 +790,10 @@ QString RetroShareLink::toString() const
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
url.setQuery(urlQuery); url.setQuery(urlQuery);
return url.toString(QUrl::EncodeSpaces | QUrl::EncodeUnicode);
#else
return url.toString().replace(" ","%20");//Seems to be already done with Qt4 but to be sure.
#endif #endif
return url.toString();
} }
QString RetroShareLink::niceName() const QString RetroShareLink::niceName() const