From 2bd74a3937af1868d2a20eb8dc1409358a1951b4 Mon Sep 17 00:00:00 2001 From: Stefan Bethge Date: Mon, 9 Oct 2006 14:58:57 +0000 Subject: [PATCH] don't allow delete key for local accounts --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index efdb723a3..3a125dc67 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2157,6 +2157,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) if not len(list_of_paths): return type = model[list_of_paths[0]][C_TYPE] + account = model[list_of_paths[0]][C_ACCOUNT] list_ = [] for path in list_of_paths: if model[path][C_TYPE] != type: @@ -2166,7 +2167,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) contact = gajim.contacts.get_contact_with_highest_priority(account, jid) list_.append((contact, account)) - if type in ('account', 'group', 'self_contact'): + if type in ('account', 'group', 'self_contact') or account == gajim.ZEROCONF_ACC_NAME: return if type == 'contact': self.on_req_usub(widget, list_)