From b10c1b063de0623b16baedd2d41add7bc5a849e2 Mon Sep 17 00:00:00 2001 From: haitaka Date: Wed, 13 Apr 2016 19:08:50 +0600 Subject: [PATCH] Site favicon as window icon when 'tabs-are-windows' is enabled --- qutebrowser/mainwindow/tabbedbrowser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 7c6c4e9c8..dc18fd673 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -533,6 +533,9 @@ class TabbedBrowser(tabwidget.TabWidget): # We can get signals for tabs we already deleted... return self.setTabIcon(idx, tab.icon()) + if idx == self.currentIndex() and config.get('tabs', + 'tabs-are-windows'): + self.window().setWindowIcon(tab.icon()) @pyqtSlot(usertypes.KeyMode) def on_mode_left(self, mode):