From 7208ea150aa266c43db32cfbaef4f23fc2bbc699 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 20 Jul 2006 10:11:50 +0000 Subject: [PATCH] don't allow to drop a contact on account row in merged mode --- src/roster_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 179283b8c..604f710fd 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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