From 37a313701ca9224c266e1bf6f540944e52e4a818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 6 May 2017 11:29:23 +0200 Subject: [PATCH] Fix exception when minimizing a groupchat --- src/chat_control_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat_control_base.py b/src/chat_control_base.py index c3e5a8dab..a81533b6a 100644 --- 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