prettify yank pretty-url
This commit is contained in:
parent
57d896e989
commit
268db48f19
@ -677,7 +677,9 @@ class CommandDispatcher:
|
|||||||
"""Helper method for yank() to get the URL to copy."""
|
"""Helper method for yank() to get the URL to copy."""
|
||||||
assert what in ['url', 'pretty-url'], what
|
assert what in ['url', 'pretty-url'], what
|
||||||
flags = QUrl.RemovePassword
|
flags = QUrl.RemovePassword
|
||||||
if what != 'pretty-url':
|
if what == 'pretty-url':
|
||||||
|
flags |= QUrl.DecodeReserved
|
||||||
|
else:
|
||||||
flags |= QUrl.FullyEncoded
|
flags |= QUrl.FullyEncoded
|
||||||
url = QUrl(self._current_url())
|
url = QUrl(self._current_url())
|
||||||
url_query = QUrlQuery(url)
|
url_query = QUrlQuery(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user