Commit 7934380c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 60656d9c
...@@ -1028,7 +1028,8 @@ class PopupNotificationWindow: ...@@ -1028,7 +1028,8 @@ class PopupNotificationWindow:
'file-send-error', 'file-error', 'file-stopped', 'file-completed'): 'file-send-error', 'file-error', 'file-stopped', 'file-completed'):
# Get the first single message event # Get the first single message event
ev = gajim.get_first_event(self.account, self.jid, self.msg_type) 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 else: # chat or pm
gajim.interface.handle_event(self.account, contact.jid, self.msg_type) gajim.interface.handle_event(self.account, contact.jid, self.msg_type)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment