fix a traceback
This commit is contained in:
parent
a41f828d39
commit
7c8bd6ac38
1 changed files with 9 additions and 7 deletions
|
@ -686,10 +686,12 @@ class Chat:
|
||||||
childs[5].connect('activate', self.on_start_chat_activate, text)
|
childs[5].connect('activate', self.on_start_chat_activate, text)
|
||||||
childs[6].connect('activate',
|
childs[6].connect('activate',
|
||||||
self.on_join_group_chat_menuitem_activate, text)
|
self.on_join_group_chat_menuitem_activate, text)
|
||||||
|
if self.plugin.roster.contacts[self.account].has_key(text):
|
||||||
u = self.plugin.roster.contacts[self.account][text][0]
|
u = self.plugin.roster.contacts[self.account][text][0]
|
||||||
|
|
||||||
if self.plugin.roster.contacts[self.account].has_key(text) and \
|
if self.plugin.roster.contacts[self.account].has_key(text) and \
|
||||||
'not in the roster' not in u.groups:
|
'not in the roster' not in u.groups:
|
||||||
childs[7].hide()
|
childs[7].hide() # add to roster menuitem
|
||||||
else:
|
else:
|
||||||
childs[7].connect('activate', self.on_add_to_roster_activate, text)
|
childs[7].connect('activate', self.on_add_to_roster_activate, text)
|
||||||
childs[7].show()
|
childs[7].show()
|
||||||
|
|
Loading…
Add table
Reference in a new issue