BugFix: prevent View Terminate if not previously Initiated

Ensures Action::Manager stores terminated actions only if previously initiated (caused iterative action storing on keyboard repeat).
This commit is contained in:
Bruno Herbelin
2022-04-20 16:43:42 +02:00
parent d41a85f4a1
commit c8f8fcf9d3
9 changed files with 74 additions and 66 deletions

6
View.h
View File

@@ -75,7 +75,7 @@ public:
// grab a source provided a start and an end point in screen coordinates and the picking point
virtual void initiate ();
virtual void terminate ();
virtual void terminate (bool force = false);
virtual Cursor grab (Source*, glm::vec2, glm::vec2, std::pair<Node *, glm::vec2>) {
return Cursor ();
}
@@ -105,9 +105,11 @@ protected:
virtual void restoreSettings ();
virtual void saveSettings ();
std::string current_action_;
Mode mode_;
bool current_action_ongoing_;
std::string current_action_;
// selection
Group *overlay_selection_;
Frame *overlay_selection_frame_;