prevent a traceback when we have events that we dont show in systray. Fixes #4210

This commit is contained in:
Yann Leboulanger 2008-09-01 13:40:40 +00:00
parent f8b620ce9a
commit 48b78ee327
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ class Systray:
def on_middle_click(self):
'''middle click raises window to have complete focus (fe. get kbd events)
but if already raised, it hides it'''
if len(gajim.events.get_systray_events()) == 0:
if gajim.events.get_nb_systray_events() == 0:
return
self.handle_first_event()