mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-11 00:44:27 -05:00
Fix Copy RsLink in Clipboard.
Spaces and specials characters are now encoded.
This commit is contained in:
parent
b8b78dd6cb
commit
46cf25d3aa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user