use a connected account to join groupchat when we press Ctrl+J

This commit is contained in:
Yann Leboulanger 2010-01-25 18:21:54 +01:00
parent 68615ee38a
commit 1cbb9ad3fb
1 changed files with 4 additions and 1 deletions

View File

@ -5716,7 +5716,10 @@ class RosterWindow:
Bring up the conference join dialog, when CTRL+J accelerator is being
activated
"""
account = gajim.connections.keys()[0]
# find a conencted account:
for account in gajim.connections:
if gajim.account_is_connected(account):
break
self.on_join_gc_activate(None, account)
return True