This commit is contained in:
Florian Bruhin 2018-03-16 09:07:25 +01:00
parent a6ce188e0d
commit f7074b80d0
3 changed files with 5 additions and 4 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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):