diff options
Diffstat (limited to 'qutebrowser/mainwindow/statusbar/bar.py')
-rw-r--r-- | qutebrowser/mainwindow/statusbar/bar.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py index 32a899742..19afa5792 100644 --- a/qutebrowser/mainwindow/statusbar/bar.py +++ b/qutebrowser/mainwindow/statusbar/bar.py @@ -200,7 +200,7 @@ class StatusBar(QWidget): self.tabindex = tabindex.TabIndex() self.keystring = keystring.KeyString() self.prog = progress.Progress(self) - self.text_widgets = [] + self._text_widgets = [] self._draw_widgets() config.instance.changed.connect(self._on_config_changed) @@ -252,12 +252,14 @@ class StatusBar(QWidget): self.prog.enabled = True if tab: self.prog.on_tab_changed(tab) - elif segment.startswith('text'): + elif segment.startswith('text:'): cur_widget = textbase.TextBase() self.text_widgets.append(cur_widget) cur_widget.setText(segment.partition(':')[2]) self._hbox.addWidget(cur_widget) cur_widget.show() + else: + raise utils.Unreachable(segment) def _clear_widgets(self): """Clear widgets before redrawing them.""" |