diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/prefdialog.cpp | 5 |
1 files changed, 1 insertions, 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; } |
