mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Fix crash w/double backToPreviousState() when the state after app.editor:askPoint() is canceled from the script
This commit is contained in:
parent
9b76f95b15
commit
1c75092e13
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user