diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index b754ce9cb..701397877 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -410,7 +410,9 @@ class TabbedBrowser(tabwidget.TabWidget): tab.openurl(url) if background is None: background = config.get('tabs', 'background-tabs') - if not background: + if background: + self.tab_index_changed.emit(self.currentIndex(), self.count()) + else: self.setCurrentWidget(tab) tab.show() self.new_tab.emit(tab, idx)