prevent a TB described in #1446

This commit is contained in:
Nikos Kouremenos 2006-01-25 19:36:44 +00:00
parent 7c4b24f2fd
commit 269cc48fb2
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,8 @@ class SystrayWin32(systray.Systray):
self.on_left_click()
def add_jid(self, jid, account, typ):
if self.systray_winapi.notify_icon is None:
return
systray.Systray.add_jid(self, jid, account, typ)
nb = gajim.interface.roster.nb_unread