summaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-08-26 17:42:56 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-08-26 17:42:56 +0200
commit60b234be4deda933a49ea34b92974fa725e05b42 (patch)
tree872642bb605f2fc59ce1605384537ac11c082ea5 /qutebrowser
parent9a6856175d3910f6115139574f15fa5c08ecabce (diff)
downloadqutebrowser-60b234be4deda933a49ea34b92974fa725e05b42.tar.gz
qutebrowser-60b234be4deda933a49ea34b92974fa725e05b42.zip
QUrl hacks
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/browser/history.py2
-rw-r--r--qutebrowser/misc/crashsignal.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/qutebrowser/browser/history.py b/qutebrowser/browser/history.py
index c418f3ce4..7b5181255 100644
--- a/qutebrowser/browser/history.py
+++ b/qutebrowser/browser/history.py
@@ -434,7 +434,7 @@ class WebHistory(sql.SqlTable):
}, replace=True)
def _format_url(self, url):
- return url.toString(QUrl.UrlFormattingOption.RemovePassword | QUrl.ComponentFormattingOption.FullyEncoded)
+ return url.toString()
def _format_completion_url(self, url):
return url.toString(QUrl.UrlFormattingOption.RemovePassword)
diff --git a/qutebrowser/misc/crashsignal.py b/qutebrowser/misc/crashsignal.py
index 6c7bce395..39ddac995 100644
--- a/qutebrowser/misc/crashsignal.py
+++ b/qutebrowser/misc/crashsignal.py
@@ -134,8 +134,7 @@ class CrashHandler(QObject):
window=win_id)
for tab in tabbed_browser.widgets():
try:
- urlstr = tab.url().toString(
- QUrl.UrlFormattingOption.RemovePassword | QUrl.ComponentFormattingOption.FullyEncoded)
+ urlstr = tab.url().toString()
if urlstr:
win_pages.append(urlstr)
except Exception: