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
1 changed files with 1 additions and 5 deletions

View File

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