[Jim] fix wrong context menu. Fixes #1638

This commit is contained in:
Yann Leboulanger 2006-03-01 21:08:37 +00:00
parent c307cb61f6
commit 69f8e83bcc
2 changed files with 2 additions and 1 deletions

View File

@ -641,7 +641,7 @@ class ChatControlBase(MessageControl):
jid = contact.jid
if self.type_id == message_control.TYPE_GC:
start_removing_from = 7 # # this is from the seperator and after
start_removing_from = 6 # # this is from the seperator and after
else:
if _('Not in Roster') in contact.groups: # for add_to_roster_menuitem
childs[5].show()

View File

@ -301,6 +301,7 @@ class GroupchatControl(ChatControlBase):
c = gajim.contacts.get_gc_contact(self.account, self.room_jid, self.nick)
if c.affiliation not in ('owner', 'admin'):
childs[1].set_sensitive(False)
menu = self.remove_possible_switch_to_menuitems(menu)
return menu
def on_message(self, nick, msg, tim):