summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 05dc15c)
raw | patch | inline | side by side (parent: 05dc15c)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Sat, 1 Sep 2007 04:34:37 +0000 (04:34 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Sat, 1 Sep 2007 04:34:37 +0000 (04:34 +0000) |
Nasty little state machine. Seems better now.
src/extension/execution-env.cpp | patch | blob | history |
index ffaaed86d60968140fca0e969fb7be0c7ec74152..9f50f0c6adae63e56c93a1e2a53327263e689fbb 100644 (file)
} else {
_visibleDialog = prefDialog;
_prefsVisible = true;
+
+ // We came from a dialog, we'll need to die by ourselves.
+ _selfdelete = true;
}
if (_changeSignal != NULL) {
if (!_livePreview) {
_mainloop->quit();
_humanWait = false;
- _livePreview = true; // this is counter intuitive
}
}
} else {
ExecutionEnv::run (void) {
while (!_finished) {
_canceled = false;
- if (_humanWait || !_livePreview) {
+ if (_humanWait) {
_mainloop->run();
} else {
_prefsChanged = false;
_mainloop->quit();
if (_livePreview && !state) {
documentCancel();
+ _humanWait = true;
}
if (!_livePreview && state) {
_humanWait = false;