Fix Modelfilter regression: disconnecting a minimized groupchat was broken.

This commit is contained in:
Stephan Erb 2008-04-21 22:34:32 +00:00
parent fb12c17fb9
commit 465aab8200

View file

@ -2668,12 +2668,8 @@ class RosterWindow:
ctrl.shutdown() ctrl.shutdown()
contact = gajim.contacts.get_contact_with_highest_priority(account, jid) contact = gajim.contacts.get_contact_with_highest_priority(account, jid)
if not contact:
return
if contact.groups == [_('Groupchats')]: if contact.groups == [_('Groupchats')]:
# FIXME: use proper API self.remove_groupchat(contact.jid, account)
gajim.contacts.remove_contact(account, contact)
self.remove_contact(contact.jid, account)
def on_send_single_message_menuitem_activate(self, widget, account, def on_send_single_message_menuitem_activate(self, widget, account,
contact = None): contact = None):