Philipp Hörist pushed to branch master at gajim / gajim
Commits:
37a31370 by Philipp Hörist at 2017-05-06T11:29:23+02:00
Fix exception when minimizing a groupchat
- - - - -
1 changed file:
- src/chat_control_base.py
Changes:
=====================================
src/chat_control_base.py
=====================================
--- a/src/chat_control_base.py
+++ b/src/chat_control_base.py
@@ -804,6 +804,9 @@ class ChatControlBase(MessageControl, ChatCommandProcessor,
CommandTools):
"""
It gets called no matter if it is the active window or not
"""
+ if not self.parent_win:
+ # when a groupchat is minimized there is no parent window
+ return
if self.parent_win.get_active_jid() == self.contact.jid:
# if window is the active one, change vars assisting chatstate
self.mouse_over_in_last_5_secs = True
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/37a313701ca9224c266e1bf6f540944e52e4a818
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits