From 7934380cb25ee0e41fbaeb8f1da835a659bfae94 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 2 Mar 2006 21:13:12 +0000 Subject: [PATCH] when we click on a popup window, event is maybe already shown. prevent this TB. Fixes #1644 --- src/dialogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 0496210e0..231e6847a 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1028,7 +1028,8 @@ class PopupNotificationWindow: 'file-send-error', 'file-error', 'file-stopped', 'file-completed'): # Get the first single message event ev = gajim.get_first_event(self.account, self.jid, self.msg_type) - gajim.interface.roster.open_event(self.account, self.jid, ev) + if ev: + gajim.interface.roster.open_event(self.account, self.jid, ev) else: # chat or pm gajim.interface.handle_event(self.account, contact.jid, self.msg_type)