revert thorstenp's patch [10510] that breaks setting all contacts offline when we go offline.
This commit is contained in:
parent
54535f9e61
commit
1a8b77f1cc
|
@ -2070,8 +2070,8 @@ class RosterWindow:
|
||||||
for jid in gajim.contacts.get_jid_list(account):
|
for jid in gajim.contacts.get_jid_list(account):
|
||||||
lcontact = gajim.contacts.get_contacts(account, jid)
|
lcontact = gajim.contacts.get_contacts(account, jid)
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_gc_control(jid, account)
|
ctrl = gajim.interface.msg_win_mgr.get_gc_control(jid, account)
|
||||||
for contact in lcontact:
|
for contact in [c for c in lcontact if ((c.show != 'offline' or \
|
||||||
if (contact.show != 'offline' or contact.is_transport()) and not ctrl:
|
c.is_transport()) and not ctrl)]:
|
||||||
self.chg_contact_status(contact, 'offline', '', account)
|
self.chg_contact_status(contact, 'offline', '', account)
|
||||||
self.actions_menu_needs_rebuild = True
|
self.actions_menu_needs_rebuild = True
|
||||||
self.update_status_combobox()
|
self.update_status_combobox()
|
||||||
|
|
Loading…
Reference in New Issue