Rename _openurl_prepare

This commit is contained in:
Florian Bruhin 2018-11-30 08:38:11 +01:00
parent da5527f5ef
commit a7f7607b4d
3 changed files with 4 additions and 4 deletions

View File

@ -1044,8 +1044,8 @@ class AbstractTab(QWidget):
def load_status(self) -> usertypes.LoadStatus:
return self._load_status
def _openurl_prepare(self, url: QUrl, *,
emit_before_load_started: bool = True) -> None:
def _load_url_prepare(self, url: QUrl, *,
emit_before_load_started: bool = True) -> None:
qtutils.ensure_valid(url)
if emit_before_load_started:
self.before_load_started.emit(url)

View File

@ -1146,7 +1146,7 @@ class WebEngineTab(browsertab.AbstractTab):
# https://github.com/qutebrowser/qutebrowser/issues/3896
return
self._saved_zoom = self.zoom.factor()
self._openurl_prepare(
self._load_url_prepare(
url, emit_before_load_started=emit_before_load_started)
self._widget.load(url)

View File

@ -723,7 +723,7 @@ class WebKitTab(browsertab.AbstractTab):
settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True)
def load_url(self, url, *, emit_before_load_started=True):
self._openurl_prepare(
self._load_url_prepare(
url, emit_before_load_started=emit_before_load_started)
self._widget.load(url)