diff options
author | nick_m <mainsbridge@gmail.com> | 2015-01-13 21:41:30 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-01-13 21:41:30 +1100 |
commit | 7a3662bc14e1fc6cacd6482f46e51b7ed54a6f52 (patch) | |
tree | 7b429244a1baf2649c0a0d9795f0087161d5fb51 /gtk2_ardour/route_time_axis.cc | |
parent | 877492ef8a5e5dff23a157d7a7950f027ba51ec1 (diff) |
Fix missing selection undo for track header click and route list select.
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index d2d4820308..92bee3a4fe 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -1294,15 +1294,22 @@ RouteTimeAxisView::selection_click (GdkEventButton* ev) if (Keyboard::modifier_state_equals (ev->state, (Keyboard::TertiaryModifier|Keyboard::PrimaryModifier))) { /* special case: select/deselect all tracks */ + + _editor.begin_reversible_selection_op (X_("Selection Click")); + if (_editor.get_selection().selected (this)) { _editor.get_selection().clear_tracks (); } else { _editor.select_all_tracks (); } + _editor.commit_reversible_selection_op (); + return; } + _editor.begin_reversible_selection_op (X_("Selection Click")); + switch (ArdourKeyboard::selection_type (ev->state)) { case Selection::Toggle: _editor.get_selection().toggle (this); @@ -1320,6 +1327,8 @@ RouteTimeAxisView::selection_click (GdkEventButton* ev) _editor.get_selection().add (this); break; } + + _editor.commit_reversible_selection_op (); } void |