diff options
Diffstat (limited to 'qutebrowser/mainwindow/statusbar/url.py')
-rw-r--r-- | qutebrowser/mainwindow/statusbar/url.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/statusbar/url.py b/qutebrowser/mainwindow/statusbar/url.py index 54faf232d..7892b3e83 100644 --- a/qutebrowser/mainwindow/statusbar/url.py +++ b/qutebrowser/mainwindow/statusbar/url.py @@ -116,7 +116,9 @@ class UrlText(textbase.TextBase): if old_urltype != self._urltype: # We can avoid doing an unpolish here because the new style will # always override the old one. - self.style().polish(self) + style = self.style() + assert style is not None + style.polish(self) @pyqtSlot(usertypes.LoadStatus) def on_load_status_changed(self, status): |