From 60b234be4deda933a49ea34b92974fa725e05b42 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 26 Aug 2021 17:42:56 +0200 Subject: QUrl hacks --- qutebrowser/browser/history.py | 2 +- qutebrowser/misc/crashsignal.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'qutebrowser') 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: -- cgit v1.2.3-54-g00ecf