Merge branch 'tabindexfix' of https://github.com/nginth/qutebrowser into nginth-tabindexfix

This commit is contained in:
Florian Bruhin 2016-05-25 22:09:01 +02:00
commit 824e662154

View File

@ -410,7 +410,9 @@ class TabbedBrowser(tabwidget.TabWidget):
tab.openurl(url) tab.openurl(url)
if background is None: if background is None:
background = config.get('tabs', 'background-tabs') background = config.get('tabs', 'background-tabs')
if not background: if background:
self.tab_index_changed.emit(self.currentIndex(), self.count())
else:
self.setCurrentWidget(tab) self.setCurrentWidget(tab)
tab.show() tab.show()
self.new_tab.emit(tab, idx) self.new_tab.emit(tab, idx)