prevent traceback when trying to show event from gajim-remote while there is no event. Fixes #5031
This commit is contained in:
parent
ffd82a69a4
commit
796c5084c5
|
@ -346,6 +346,8 @@ class Systray:
|
||||||
|
|
||||||
def handle_first_event(self):
|
def handle_first_event(self):
|
||||||
account, jid, event = gajim.events.get_first_systray_event()
|
account, jid, event = gajim.events.get_first_systray_event()
|
||||||
|
if not event:
|
||||||
|
return
|
||||||
gajim.interface.handle_event(account, jid, event.type_)
|
gajim.interface.handle_event(account, jid, event.type_)
|
||||||
|
|
||||||
def on_middle_click(self):
|
def on_middle_click(self):
|
||||||
|
|
Loading…
Reference in New Issue