don't allow to delete contacts from an offline account. Fixes #7822

This commit is contained in:
Yann Leboulanger 2014-10-03 22:48:14 +02:00
parent a764cb5384
commit 9b3e2e03c9
1 changed files with 4 additions and 0 deletions

View File

@ -3459,9 +3459,13 @@ class RosterWindow:
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':