From 39b4eedcf1dcdce33b4d126abf11bce0bd92905c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 19 Jul 2006 11:04:21 +0000 Subject: [PATCH] remove ability todrop a contact on self contact row --- src/roster_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 8257ae349..82ab1016d 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3180,6 +3180,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid) if gajim.connections[account_dest].connected < 2: return + # drop on self contact row + if type_dest == 'self_contact': + return + if info == self.TARGET_TYPE_URI_LIST: # User dropped a file on the roster if len(path_dest) < 3: