changeset 8a6efa324723 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=8a6efa324723 description: don't allow to delete contacts from an offline account. Fixes #7822
diffstat:
src/roster_window.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 1e98e2bfd3b2 -r 8a6efa324723 src/roster_window.py --- a/src/roster_window.py Mon Sep 15 14:03:52 2014 +0200 +++ b/src/roster_window.py Fri Oct 03 22:48:14 2014 +0200 @@ -3459,9 +3459,13 @@ return jid = model[path][C_JID] account = model[path][C_ACCOUNT] + if not gajim.account_is_connected(account): + continue contact = gajim.contacts.get_contact_with_highest_priority( account, jid) list_.append((contact, account)) + if not list_: + return if type_ == 'contact': self.on_req_usub(widget, list_) elif type_ == 'agent':