If there are no more Terminals, destroy all Windows

This commit is contained in:
Chris Jones 2009-11-19 23:45:33 -06:00
parent efbeffb060
commit 7a3f553d82

View File

@ -66,6 +66,10 @@ class Terminator(Borg):
dbg('Terminator::deregister_terminal: de-registering %s' % terminal)
self.terminals.remove(terminal)
if len(self.terminals) == 0:
for window in self.windows:
window.destroy()
def reconfigure_terminals(self):
"""Tell all terminals to update their configuration"""