enable "invite to" submenu when we select several contacts. Fixes #5711

This commit is contained in:
Yann Leboulanger 2010-04-24 09:51:32 +02:00
parent a359b06912
commit ad6c4d7500
1 changed files with 7 additions and 6 deletions

View File

@ -106,7 +106,7 @@ def build_invite_submenu(invite_menuitem, list_):
invite_to_new_room_menuitem.connect('activate', invite_to_new_room_menuitem.connect('activate',
roster.on_invite_to_new_room, list_, resource) roster.on_invite_to_new_room, list_, resource)
else: else:
invite_menuitem.set_sensitive(False) invite_menuitem.set_sensitive(True)
# transform None in 'jabber' # transform None in 'jabber'
c_t = contacts_transport or 'jabber' c_t = contacts_transport or 'jabber'
muc_jid = {} muc_jid = {}
@ -120,7 +120,8 @@ def build_invite_submenu(invite_menuitem, list_):
rooms = [] # a list of (room_jid, account) tuple rooms = [] # a list of (room_jid, account) tuple
minimized_controls = [] minimized_controls = []
for account in connected_accounts: for account in connected_accounts:
minimized_controls += gajim.interface.minimized_controls[account].values() minimized_controls += \
gajim.interface.minimized_controls[account].values()
for gc_control in gajim.interface.msg_win_mgr.get_controls( for gc_control in gajim.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC) + minimized_controls: message_control.TYPE_GC) + minimized_controls:
acct = gc_control.account acct = gc_control.account