From 269cc48fb2c0b4ba4f08f287f60f00948449630d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 25 Jan 2006 19:36:44 +0000 Subject: [PATCH] prevent a TB described in #1446 --- src/systraywin32.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/systraywin32.py b/src/systraywin32.py index 89d63dfeb..edf3384a2 100644 --- a/src/systraywin32.py +++ b/src/systraywin32.py @@ -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