restructure code

This commit is contained in:
Nick Ginther 2016-05-25 13:46:31 -05:00
parent 8c487e9a5f
commit c70accda22

View File

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