From 356104187a908f6126c4fecad37c130c048c6be4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 3 Mar 2008 04:54:00 +0000 Subject: 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. (bzr r4934) --- src/extension/prefdialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3