From 46de2fe3d640087b5fa2ba543ee8c123c53cce35 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 28 Mar 2004 21:29:32 +0000 Subject: [PATCH] add user and browse agents not available when no account setup --- plugins/gtkgui/gtkgui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 8a92cf712..d59365261 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -1191,6 +1191,9 @@ class roster_Window: #agents self.xml.get_widget('browse_agents').connect("activate", \ self.on_browse, self.plugin.accounts.keys()[0]) + else: + self.xml.get_widget('add').set_sensitive(False) + self.xml.get_widget('browse_agents').set_sensitive(False) def draw_roster(self): """Clear and draw roster"""