From 124f1c641eb36cedfee4c43633243b1d55dca33e Mon Sep 17 00:00:00 2001
From: Jean-Marie Traissard <jim@lapin.org>
Date: Fri, 15 Sep 2006 11:10:49 +0000
Subject: [PATCH] Do not TB if systray is not available.

---
 src/roster_window.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index a9cfce95d0..09fd1d3bd0 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -3133,7 +3133,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
 				model[iter][1] = self.jabber_state_images['16'][model[iter][2]]
 			iter = model.iter_next(iter)
 		# Update the systray
-		gajim.interface.systray.set_img()
+		if gajim.interface.systray_enabled:
+			gajim.interface.systray.set_img()
 
 		for win in gajim.interface.msg_win_mgr.windows():
 			for ctrl in win.controls():
-- 
GitLab