don't allow to drop a contact on account row in merged mode

This commit is contained in:
Yann Leboulanger 2006-07-20 10:11:50 +00:00
parent dc29f1d744
commit 7208ea150a
1 changed files with 4 additions and 0 deletions

View File

@ -3202,6 +3202,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
jid_dest = model[iter_dest][C_JID].decode('utf-8')
account_dest = model[iter_dest][C_ACCOUNT].decode('utf-8')
if account_dest == 'all':
# drop on account row in merged mode: we can't know which account it is
return
# if account is not connected, do nothing
if gajim.connections[account_dest].connected < 2:
return