summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f58ed6e)
raw | patch | inline | side by side (parent: f58ed6e)
| author | gouldtj <gouldtj@users.sourceforge.net> | |
| Fri, 29 Feb 2008 22:22:48 +0000 (22:22 +0000) | ||
| committer | gouldtj <gouldtj@users.sourceforge.net> | |
| Fri, 29 Feb 2008 22:22:48 +0000 (22:22 +0000) |
Fix for LP: 169066
Makes it so that the preference dialog doesn't try to run an effect
that doesn't exist for input/output pref dialogs.
Makes it so that the preference dialog doesn't try to run an effect
that doesn't exist for input/output pref dialogs.
| src/extension/prefdialog.cpp | patch | blob | history |
index 5a665330b3121e2357eb7b3839c84af748166885..bb0a11d80c7ebe09ac5da9ee1e9602440e1960af 100644 (file)
PrefDialog::on_response (int signal) {
if (signal == Gtk::RESPONSE_OK) {
if (_exEnv == NULL) {
- _effect->effect(SP_ACTIVE_DESKTOP);
+ if (_effect != NULL) {
+ _effect->effect(SP_ACTIVE_DESKTOP);
+ } else {
+ // Shutdown run()
+ return;
+ }
} else {
if (_exEnv->wait()) {
_exEnv->commit();
//preview_toggle();
}
- if (signal == Gtk::RESPONSE_CANCEL) {
+ if (signal == Gtk::RESPONSE_CANCEL && _effect != NULL) {
// close the dialog
delete this;
}