From a79589249259c8cbef7f1b30fe167d80c9a67412 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 23 Dec 2014 00:30:23 +1100 Subject: Separate selection operations into their own temporary history mechanism. The user can now replay *all* earlier selection operations until the next session undo/redo command, or the completion of a new operation. Nothing relating to selection ops is stored, and selection operation history is begun on first idle. Selection operation history is fundamentally different from the history of operations which act on a selection in terms of both their viewport and the amount of information required to replay them. WRT undo, the user of a selection op doesn't care about the viewport state at the beginning of an op, but rather that at the end of the previous one. --- gtk2_ardour/editor_mouse.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk2_ardour/editor_mouse.cc') diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 51b6795b1a..e093eb5426 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1465,7 +1465,11 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT } /* do any (de)selection operations that should occur on button release */ + + begin_reversible_selection_op (_("Button Select")); button_selection (item, event, item_type); + commit_reversible_selection_op (); + return true; break; -- cgit v1.2.3