Site favicon as window icon when 'tabs-are-windows' is enabled

This commit is contained in:
haitaka 2016-04-13 19:08:50 +06:00
parent c690e652dc
commit b10c1b063d

View File

@ -533,6 +533,9 @@ class TabbedBrowser(tabwidget.TabWidget):
# We can get signals for tabs we already deleted... # We can get signals for tabs we already deleted...
return return
self.setTabIcon(idx, tab.icon()) self.setTabIcon(idx, tab.icon())
if idx == self.currentIndex() and config.get('tabs',
'tabs-are-windows'):
self.window().setWindowIcon(tab.icon())
@pyqtSlot(usertypes.KeyMode) @pyqtSlot(usertypes.KeyMode)
def on_mode_left(self, mode): def on_mode_left(self, mode):