summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-06-14 09:35:26 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-06-14 09:35:26 +0200
commitea140b0333b9c3d24a939516fd99a58543e75342 (patch)
tree3c5630cc4193180780f958c24e89f008ae9a4aac
parent06587ea43a0cf44bc53b7b6da3eabfd935b0918c (diff)
downloadqutebrowser-ea140b0333b9c3d24a939516fd99a58543e75342.tar.gz
qutebrowser-ea140b0333b9c3d24a939516fd99a58543e75342.zip
Use 'continue', not 'return'
Otherwise, any following widget in the for loop would not be added.
-rw-r--r--qutebrowser/mainwindow/statusbar/bar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py
index ae33a386a..aaaded938 100644
--- a/qutebrowser/mainwindow/statusbar/bar.py
+++ b/qutebrowser/mainwindow/statusbar/bar.py
@@ -262,7 +262,7 @@ class StatusBar(QWidget):
cur_widget.on_tab_changed(tab)
# Do not call .show() for these widgets.
- return
+ continue
elif segment.startswith('text:'):
cur_widget.setText(segment.split(':', maxsplit=1)[1])
elif segment.startswith('clock:') or segment == 'clock':