aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/editinteractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src/editinteractor.cpp')
-rw-r--r--lang/cpp/src/editinteractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/cpp/src/editinteractor.cpp b/lang/cpp/src/editinteractor.cpp
index 753c2b09..08cb1bc9 100644
--- a/lang/cpp/src/editinteractor.cpp
+++ b/lang/cpp/src/editinteractor.cpp
@@ -101,7 +101,7 @@ public:
std::fprintf(ei->debug, "EditInteractor: %u -> nextState( %s, %s ) -> %u\n",
oldState, status_to_string(status), args ? args : "<null>", ei->state);
}
- if (err) {
+ if (err || err.isCanceled()) {
ei->state = oldState;
goto error;
}
@@ -154,7 +154,7 @@ public:
}
error:
- if (err) {
+ if (err || err.isCanceled()) {
ei->error = err;
ei->state = EditInteractor::ErrorState;
}