add user and browse agents not available when no account setup

This commit is contained in:
Yann Leboulanger 2004-03-28 21:29:32 +00:00
parent 29e5833f36
commit 46de2fe3d6
1 changed files with 3 additions and 0 deletions

View File

@ -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"""