From 6c3b0219e76fe8eb5183c5d3a1574c7e66086351 Mon Sep 17 00:00:00 2001 From: Panagiotis Ktistakis Date: Wed, 20 Apr 2016 17:25:26 +0300 Subject: [PATCH] Style fix --- qutebrowser/browser/commands.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index d2afd4528..f738157f2 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -673,11 +673,10 @@ class CommandDispatcher: ':' + str(port) if port > -1 else '') what = 'domain' else: - cur_url = self._current_url() - if pretty: - s = cur_url.toString(QUrl.RemovePassword) - else: - s = cur_url.toString(QUrl.FullyEncoded | QUrl.RemovePassword) + flags = QUrl.RemovePassword + if not pretty: + flags |= QUrl.FullyEncoded + s = self._current_url().toString(flags) what = 'URL' if sel and QApplication.clipboard().supportsSelection():