From a8c55ffe08ca6aaac6af8265cd8a4f21b41e5c54 Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Thu, 7 Jul 2016 23:11:08 +0200 Subject: [PATCH] Stop downloads bar from pushing away status bar --- qutebrowser/mainwindow/mainwindow.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 29d2fb46c..df12e3084 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -215,13 +215,6 @@ class MainWindow(QWidget): status_position = config.get('ui', 'status-position') widgets = [self.tabbed_browser] - if status_position == 'top': - widgets.insert(0, self.status) - elif status_position == 'bottom': - widgets.append(self.status) - else: - raise ValueError("Invalid position {}!".format(status_position)) - if downloads_position == 'top': widgets.insert(0, self._downloadview) elif downloads_position == 'bottom': @@ -229,6 +222,13 @@ class MainWindow(QWidget): else: raise ValueError("Invalid position {}!".format(downloads_position)) + if status_position == 'top': + widgets.insert(0, self.status) + elif status_position == 'bottom': + widgets.append(self.status) + else: + raise ValueError("Invalid position {}!".format(status_position)) + for widget in widgets: self._vbox.addWidget(widget)