Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-05-06 12:29:23 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-05-06 12:29:23 +0300
commit37a313701ca9224c266e1bf6f540944e52e4a818 (patch)
treeb7b6050b683f746f1335724ff2372eb58987d5df /src
parent6e8e5aec51136f07bc788d0766db7960a4472677 (diff)
Fix exception when minimizing a groupchat
Diffstat (limited to 'src')
-rw-r--r--src/chat_control_base.py3
1 files changed, 3 insertions, 0 deletions
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