From 978e213e2c1fd5ec9c562819ff246292997e2d8c Mon Sep 17 00:00:00 2001 From: gouldtj Date: Mon, 3 Mar 2008 04:54:00 +0000 Subject: [PATCH] r18237@shi: ted | 2008-03-01 14:41:25 -0800 Fix for LP: #191772 Makes it so that the response handler handles the DELETE_EVENT response also. Basically handled the same as close. --- src/extension/prefdialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index bb0a11d80..cf2f12853 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -222,13 +222,10 @@ PrefDialog::on_response (int signal) { } if (_param_preview != NULL) { - //_param_preview->set_bool(false, NULL, NULL); _checkbox_preview->set_active(false); - //preview_toggle(); } - if (signal == Gtk::RESPONSE_CANCEL && _effect != NULL) { - // close the dialog + if ((signal == Gtk::RESPONSE_CANCEL || signal == Gtk::RESPONSE_DELETE_EVENT) && _effect != NULL) { delete this; } -- 2.30.2