correctly unregister events when closing a groupchat

This commit is contained in:
Yann Leboulanger 2011-10-31 09:52:23 +01:00
parent 520bc6b268
commit 006791d836
1 changed files with 2 additions and 0 deletions

View File

@ -1929,6 +1929,8 @@ class GroupchatControl(ChatControlBase):
self._nec_gc_config_changed_received)
gajim.ged.remove_event_handler('signed-in', ged.GUI1,
self._nec_signed_in)
gajim.ged.remove_event_handler('decrypted-message-received', ged.GUI2,
self._nec_decrypted_message_received)
if self.room_jid in gajim.gc_connected[self.account] and \
gajim.gc_connected[self.account][self.room_jid]: