Author: asterix Date: 2008-10-23 18:17:03 +0200 (Thu, 23 Oct 2008) New Revision: 10564
Modified: trunk/src/roster_window.py Log: revert thorstenp's patch [10510] that breaks setting all contacts offline when we go offline.
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2008-10-23 14:10:34 UTC (rev 10563) +++ trunk/src/roster_window.py 2008-10-23 16:17:03 UTC (rev 10564) @@ -2070,9 +2070,9 @@ for jid in gajim.contacts.get_jid_list(account): lcontact = gajim.contacts.get_contacts(account, jid) ctrl = gajim.interface.msg_win_mgr.get_gc_control(jid, account) - for contact in lcontact: - if (contact.show != 'offline' or contact.is_transport()) and not ctrl: - self.chg_contact_status(contact, 'offline', '', account) + for contact in [c for c in lcontact if ((c.show != 'offline' or \ + c.is_transport()) and not ctrl)]: + self.chg_contact_status(contact, 'offline', '', account) self.actions_menu_needs_rebuild = True self.update_status_combobox() # Force the rebuild now since the on_activates on the menu itself does