From 01c12d70538a7e7714871bb79e9ca89298ba8711 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 27 Apr 2004 02:29:48 +0000 Subject: [PATCH] bugfix : when we remove an account that was online, we recieve the status "offline" after the account is removed --- plugins/gtkgui/gtkgui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 2570960a5..95e4b3540 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -1619,6 +1619,8 @@ class roster_Window: def on_status_changed(self, account, status): """the core tells us that our status has changed""" + if not self.contacts.has_key(account): + return # optionmenu = self.xml.get_widget('optionmenu') # for i in range(7): # if optionmenu.get_menu().get_children()[i].name == status: