From 7a3f553d8253bb00c2ef2b611d644b6f6ec72820 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 19 Nov 2009 23:45:33 -0600 Subject: [PATCH] If there are no more Terminals, destroy all Windows --- terminatorlib/newterminator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminatorlib/newterminator.py b/terminatorlib/newterminator.py index 6829925d..603a322f 100755 --- a/terminatorlib/newterminator.py +++ b/terminatorlib/newterminator.py @@ -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"""