When closing a window, formally close all the terminals within. Closes LP #308025

This commit is contained in:
Chris Jones 2010-07-03 18:08:46 +01:00
parent 581a738c62
commit baa7c81593
1 changed files with 3 additions and 1 deletions

View File

@ -215,8 +215,10 @@ class Window(Container, gtk.Window):
return(not (result == gtk.RESPONSE_ACCEPT))
def on_destroy_event(self, widget, data=None):
"""Handle window descruction"""
"""Handle window destruction"""
dbg('destroying self')
for terminal in self.get_visible_terminals():
terminal.close()
self.cnxids.remove_all()
self.terminator.deregister_window(self)
self.destroy()