diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index b1fab3c9d..d3345c88b 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -827,7 +827,7 @@ class AbstractTab(QWidget): if predict: self.predicted_navigation.emit(url) - def openurl(self, url): + def openurl(self, url, *, predict=True): raise NotImplementedError def reload(self, *, force=False): diff --git a/qutebrowser/browser/webkit/webkittab.py b/qutebrowser/browser/webkit/webkittab.py index 29dd5f03b..17757a761 100644 --- a/qutebrowser/browser/webkit/webkittab.py +++ b/qutebrowser/browser/webkit/webkittab.py @@ -671,8 +671,8 @@ class WebKitTab(browsertab.AbstractTab): settings = widget.settings() settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True) - def openurl(self, url): - self._openurl_prepare(url) + def openurl(self, url, *, predict=True): + self._openurl_prepare(url, predict=predict) self._widget.openurl(url) def url(self, requested=False): diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 11e898cd0..3d9eb27f4 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -536,7 +536,8 @@ class TabbedBrowser(QWidget): else: self.widget.setTabIcon(i, QIcon()) if config.val.tabs.tabs_are_windows: - self.widget.window().setWindowIcon(self.default_window_icon) + window = self.widget.window() + window.setWindowIcon(self.default_window_icon) @pyqtSlot() def on_load_started(self, tab):