Fix crash w/double backToPreviousState() when the state after app.editor:askPoint() is canceled from the script

This commit is contained in:
David Capello 2023-04-25 19:55:32 -03:00
parent 9b76f95b15
commit 1c75092e13

View File

@ -160,8 +160,7 @@ public:
Console().printf("%s\n", s);
}
}
m_askPoint.reset();
editor->backToPreviousState();
cancel();
}
void onQuickboxCancel(Editor* editor) override {
@ -174,8 +173,7 @@ public:
Console().printf("%s\n", s);
}
}
m_askPoint.reset();
editor->backToPreviousState();
cancel();
}
std::string onGetContextBarHelp() override {