Skip to content
Snippets Groups Projects
Commit 4ae02094 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

destroy bigger_avatar_window when we close a tab. Fixes #2034

parent 0e03f023
No related branches found
No related tags found
No related merge requests found
......@@ -1363,6 +1363,9 @@ class ChatControl(ChatControlBase):
# Disconnect timer callbacks
gobject.source_remove(self.possible_paused_timeout_id)
gobject.source_remove(self.possible_inactive_timeout_id)
# Remove bigger avatar window
if self.bigger_avatar_window:
self.bigger_avatar_window.destroy()
# Clean up systray
if gajim.interface.systray_enabled and self.nb_unread > 0:
gajim.interface.systray.remove_jid(self.contact.jid, self.account,
......@@ -1641,6 +1644,7 @@ class ChatControl(ChatControlBase):
def _on_window_avatar_leave_notify_event(self, widget, event):
'''we just left the popup window that holds avatar'''
self.bigger_avatar_window.destroy()
self.bigger_avatar_window = None
# Re-show the small avatar
self.show_avatar()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment