Prevent undo and redo at points when they might break the program
This commit is contained in:
parent
f606fc6fc1
commit
2de5c90006
21 changed files with 79 additions and 2 deletions
|
|
@ -19,6 +19,8 @@ class RectDrawTool {
|
|||
void commit_edit_updates(const std::shared_ptr<DrawRectangle>& a, std::any& prevData);
|
||||
bool edit_update(const std::shared_ptr<DrawRectangle>& a);
|
||||
bool edit_gui(const std::shared_ptr<DrawRectangle>& a);
|
||||
|
||||
bool prevent_undo_or_redo();
|
||||
private:
|
||||
void commit_rectangle();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue