From: Nick Mainsbridge Date: Mon, 23 Jan 2006 18:59:30 +0000 (+0000) Subject: add some undo to previous selection stuff X-Git-Tag: 2.0beta4~439 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=7627d6f377c73756c56f9c4734f278b72854f40f;p=ardour.git add some undo to previous selection stuff git-svn-id: svn://localhost/trunk/ardour2@290 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 640d8b09b8..a5c04826c6 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -1324,7 +1324,9 @@ Editor::select_all_from_punch() } (*iter)->get_selectables (location->start(), location->end(), 0, DBL_MAX, touched); } - selection->set (touched); + begin_reversible_command (_("select all from punch")); + selection->set (touched); + commit_reversible_command (); } @@ -1343,7 +1345,9 @@ Editor::select_all_from_loop() } (*iter)->get_selectables (location->start(), location->end(), 0, DBL_MAX, touched); } - selection->set (touched); + begin_reversible_command (_("select all from loop")); + selection->set (touched); + commit_reversible_command (); } @@ -1367,9 +1371,11 @@ Editor::select_all_after_cursor (Cursor *cursor, bool after) list touched; if (after) { + begin_reversible_command (_("select all after cursor")); start = cursor->current_frame ; end = session->current_end_frame(); } else { + begin_reversible_command (_("select all before cursor")); start = 0; end = cursor->current_frame ; } @@ -1380,6 +1386,7 @@ Editor::select_all_after_cursor (Cursor *cursor, bool after) (*iter)->get_selectables (start, end, 0, DBL_MAX, touched); } selection->set (touched); + commit_reversible_command (); } void