From ac20b5011aefc53b7c4c39f0ae8dd6eb81adb8ed Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 7 Nov 2007 14:38:26 -0500 Subject: [PATCH] Don't prompt with a quit message if there is only one terminal open --- terminator | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminator b/terminator index e256b6b8..a48fd8d2 100755 --- a/terminator +++ b/terminator @@ -356,6 +356,9 @@ class Terminator: return (False) def on_delete_event (self, widget, event, data=None): + if len (self.term_list) == 1: + return False + dialog = gtk.Dialog ("Quit?", self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_QUIT, gtk.RESPONSE_ACCEPT)) label = gtk.Label ("Do you really want to quit?") dialog.vbox.pack_start (label, True, True, 0)