From bcdd4d23154944e39bf45a68ed480da352798a2d Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 26 Sep 2006 07:53:49 +0000
Subject: [PATCH] handle correctly click on sign in/out notif windows. For
 #2414

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

diff --git a/src/gajim.py b/src/gajim.py
index c850464dca..79a2934044 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -1735,7 +1735,8 @@ class Interface:
 		jid = gajim.get_jid_without_resource(jid)
 		if type_ in ('printed_gc_msg', 'gc_msg'):
 			w = self.msg_win_mgr.get_window(jid, account)
-		elif type_ in ('printed_chat', 'chat'):
+		elif type_ in ('printed_chat', 'chat', ''):
+			# '' is for log in/out notifications
 			if self.msg_win_mgr.has_window(fjid, account):
 				w = self.msg_win_mgr.get_window(fjid, account)
 			elif self.msg_win_mgr.has_window(jid, account):
-- 
GitLab