summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Schwab <git@nicholas-schwab.de>2021-04-08 16:46:03 +0200
committerNicholas Schwab <git@nicholas-schwab.de>2021-04-08 16:46:03 +0200
commita9f95c72aee2b3abc7b325e194b96188a6524356 (patch)
treee24f9802c263d5663bc3bb992538799d7da20ccd
parent433883f6baaf6f5da4f7023508fb36d1861868c0 (diff)
downloadqutebrowser-a9f95c72aee2b3abc7b325e194b96188a6524356.tar.gz
qutebrowser-a9f95c72aee2b3abc7b325e194b96188a6524356.zip
Make bar use content of text widget.
-rw-r--r--qutebrowser/mainwindow/statusbar/bar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py
index 54f62f1ad..8a379aa1e 100644
--- a/qutebrowser/mainwindow/statusbar/bar.py
+++ b/qutebrowser/mainwindow/statusbar/bar.py
@@ -259,13 +259,13 @@ class StatusBar(QWidget):
self.prog.enabled = True
if tab:
self.prog.on_tab_changed(tab)
- elif segment == 'text':
+ elif segment.startswith('text'):
try:
cur_widget = self.text_widgets[text_widget_nr]
except IndexError:
cur_widget = textbase.TextBase()
self.text_widgets.append(cur_widget)
- cur_widget.setText('Lorem %s' % text_widget_nr)
+ cur_widget.setText(segment.partition(':')[2])
self._hbox.addWidget(cur_widget)
cur_widget.show()
text_widget_nr += 1