fix closing last muc tab

This commit is contained in:
Yann Leboulanger 2008-08-09 19:30:40 +00:00
parent fa4c570a9f
commit 4aa33d3421
1 changed files with 4 additions and 1 deletions

View File

@ -198,8 +198,11 @@ class MessageWindow(object):
return
def on_minimize(ctrl):
self.on_delete_ok -= 1
ctrl.minimize()
if self.on_delete_ok == 1:
self.dont_warn_on_delete = True
win.destroy()
self.on_delete_ok -= 1
# Make sure all controls are okay with being deleted
ctrl_to_minimize = []