don't allow to drop a contact on account row in merged mode
This commit is contained in:
parent
dc29f1d744
commit
7208ea150a
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
jid_dest = model[iter_dest][C_JID].decode('utf-8')
|
||||||
account_dest = model[iter_dest][C_ACCOUNT].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 account is not connected, do nothing
|
||||||
if gajim.connections[account_dest].connected < 2:
|
if gajim.connections[account_dest].connected < 2:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue