prettify yank pretty-url

This commit is contained in:
Jakub Klinkovský 2016-09-22 14:25:48 +02:00
parent 57d896e989
commit 268db48f19

View File

@ -677,7 +677,9 @@ class CommandDispatcher:
"""Helper method for yank() to get the URL to copy."""
assert what in ['url', 'pretty-url'], what
flags = QUrl.RemovePassword
if what != 'pretty-url':
if what == 'pretty-url':
flags |= QUrl.DecodeReserved
else:
flags |= QUrl.FullyEncoded
url = QUrl(self._current_url())
url_query = QUrlQuery(url)