diff --git a/qutebrowser/browser/signalfilter.py b/qutebrowser/browser/signalfilter.py index 52ca5c5bf..50f5b9a9c 100644 --- a/qutebrowser/browser/signalfilter.py +++ b/qutebrowser/browser/signalfilter.py @@ -23,7 +23,7 @@ from functools import partial from PyQt5.QtCore import QObject from qutebrowser.utils.signals import dbg_signal -from qutebrowser.widgets.browsertab import BrowserTab +from qutebrowser.widgets.webview import WebView class SignalFilter(QObject): @@ -76,7 +76,7 @@ class SignalFilter(QObject): if log_signal: logging.debug('signal {} (tab {})'.format( dbg_signal(signal, args), self._tabs.indexOf(sender))) - if not isinstance(sender, BrowserTab): + if not isinstance(sender, WebView): # BUG? This should never happen, but it does regularely... logging.warn('Got signal {} by {} which is no tab!'.format( dbg_signal(signal, args), sender)) diff --git a/qutebrowser/widgets/_tabbedbrowser.py b/qutebrowser/widgets/_tabbedbrowser.py index 6e216485a..adf036b56 100644 --- a/qutebrowser/widgets/_tabbedbrowser.py +++ b/qutebrowser/widgets/_tabbedbrowser.py @@ -29,7 +29,7 @@ import qutebrowser.utils.message as message import qutebrowser.config.config as config import qutebrowser.commands.utils as cmdutils from qutebrowser.widgets._tabwidget import TabWidget -from qutebrowser.widgets.browsertab import BrowserTab +from qutebrowser.widgets.webview import WebView from qutebrowser.browser.signalfilter import SignalFilter from qutebrowser.browser.curcommand import CurCommandDispatcher @@ -217,7 +217,7 @@ class TabbedBrowser(TabWidget): """ logging.debug("Opening {}".format(url)) url = urlutils.qurl(url) - tab = BrowserTab(self) + tab = WebView(self) self._connect_tab_signals(tab) self._tabs.append(tab) self.addTab(tab, urlutils.urlstring(url)) diff --git a/qutebrowser/widgets/browsertab.py b/qutebrowser/widgets/webview.py similarity index 99% rename from qutebrowser/widgets/browsertab.py rename to qutebrowser/widgets/webview.py index aa7f99607..65001056c 100644 --- a/qutebrowser/widgets/browsertab.py +++ b/qutebrowser/widgets/webview.py @@ -36,7 +36,7 @@ from qutebrowser.utils.signals import SignalCache from qutebrowser.utils.usertypes import NeighborList -class BrowserTab(QWebView): +class WebView(QWebView): """One browser tab in TabbedBrowser.