From 5008a158383d6d42c004216838ef50e58a00fc77 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 28 Nov 2005 15:26:17 +0000 Subject: [PATCH] prevent from drag-n dropping a contact to "transport" or "not in the roster" group --- src/roster_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 39195de5a..52deacfc8 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2432,6 +2432,8 @@ _('If "%s" accepts this request you will know his or her status.') %jid) grp_dest = model[iter_dest][C_JID].decode('utf-8') else: grp_dest = model[model.iter_parent(iter_dest)][C_JID].decode('utf-8') + if grp_dest == _('Transports') or grp_dest == _('not in the roster'): + return if grp_source == grp_dest: return # We upgrade only the first user because user2.groups is a pointer to