Mercurial > libervia-web
diff src/browser/libervia_main.py @ 835:a964ff397484
browser: update favicon counter when a tab change make notified messages visible
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 12 Jan 2016 18:00:12 +0100 |
parents | 2491898b3041 |
children | 09ace5cbcb9b |
line wrap: on
line diff
--- a/src/browser/libervia_main.py Tue Jan 12 17:59:07 2016 +0100 +++ b/src/browser/libervia_main.py Tue Jan 12 18:00:12 2016 +0100 @@ -215,7 +215,10 @@ return True def onTabSelected(self, sender, tab_index): - pass + for widget in self.tab_panel.getCurrentPanel().widgets: + if isinstance(widget, chat.Chat): + clist = self.contact_list + clist.removeAlerts(widget.current_target, True) def onEventPreview(self, event): if event.type in ["keydown", "keypress", "keyup"] and event.keyCode == KEY_ESCAPE: