Stop downloads bar from pushing away status bar

This commit is contained in:
Jan Verbeek 2016-07-07 23:11:08 +02:00
parent 29ee605c79
commit a8c55ffe08

View File

@ -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)