prevent drag'n'drop of contacts into zeroconf account

This commit is contained in:
Stefan Bethge 2006-09-27 14:38:57 +00:00
parent 3de26f73ec
commit 2a067d1d8c
1 changed files with 4 additions and 0 deletions

View File

@ -3584,6 +3584,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
if account_dest == 'all':
# drop on account row in merged mode: we can't know which account it is
return
if account_dest == gajim.ZEROCONF_ACC_NAME:
# drop on zeroconf account, no contact adds possible
return
# if account is not connected, do nothing
if gajim.connections[account_dest].connected < 2: