when we click on a popup window, event is maybe already shown. prevent this TB. Fixes #1644

This commit is contained in:
Yann Leboulanger 2006-03-02 21:13:12 +00:00
parent 60656d9cc2
commit 7934380cb2
1 changed files with 2 additions and 1 deletions

View File

@ -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)