From 9f9996bc661a59e98d488068b2867027a2708a57 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 2 Apr 2015 09:09:17 +0200 Subject: [PATCH] Refuse to add empty URLs to history. --- qutebrowser/browser/history.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/browser/history.py b/qutebrowser/browser/history.py index ea5d6f616..e7be994da 100644 --- a/qutebrowser/browser/history.py +++ b/qutebrowser/browser/history.py @@ -132,6 +132,8 @@ class WebHistory(QWebHistoryInterface): Args: url_string: An url as string to add to the history. """ + if not url_string: + return if not config.get('general', 'private-browsing'): entry = HistoryEntry(time.time(), url_string) self.item_about_to_be_added.emit(entry)