From f804c04d59a950774990e82760efa9e8057834e6 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Thu, 5 May 2005 16:02:14 +0000
Subject: [PATCH] bugfix

---
 src/tabbed_chat_window.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py
index f1e9c7cee0..63050554e0 100644
--- a/src/tabbed_chat_window.py
+++ b/src/tabbed_chat_window.py
@@ -154,12 +154,13 @@ class Tabbed_chat_window(chat.Chat):
 			del self.users[jid]
 
 		jid = self.get_active_jid() # get the new active jid  
-		nontabbed_status_image = self.xmls[jid].get_widget(
-			'nontabbed_status_image')  
-		if len(self.xmls) > 1:  
-			nontabbed_status_image.hide()  
-		else:  
-			nontabbed_status_image.show()  
+		if jid != '':
+			nontabbed_status_image = self.xmls[jid].get_widget(
+				'nontabbed_status_image')  
+			if len(self.xmls) > 1:  
+				nontabbed_status_image.hide()  
+			else:
+				nontabbed_status_image.show()
 
 	def new_user(self, user):
 		self.names[user.jid] = user.name
-- 
GitLab