From 29e5833f36acce78a5f2036e41be41f5c9132713 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 28 Mar 2004 14:43:37 +0000 Subject: [PATCH] bugfix when no account is setup --- plugins/gtkgui/gtkgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index c38d70f22..8a92cf712 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -1184,7 +1184,7 @@ class roster_Window: menu_sub.append(item) item.connect("activate", self.on_browse, a) menu_sub.show_all() - else: + elif len(self.plugin.accounts.keys()) == 1: #add self.xml.get_widget('add').connect("activate", self.on_add, \ self.plugin.accounts.keys()[0])