summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2015-10-07 23:56:14 +0200
committerRobin Gareus <robin@gareus.org>2015-10-08 13:46:22 +0200
commit4c26225ddc4c04365a694a77287ce3a812bc4935 (patch)
treeebebcdcec9582d6c6c1b6f2c4c862afedc28305e /gtk2_ardour/editor_selection.cc
parentfc6b965ad0f79ee6d049567b99fc92ccef811fa7 (diff)
Fix "Select All * Edit Point" when used as shortcut. -fixes #6626
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 5a59b48a90..85ec795e40 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -1819,17 +1819,17 @@ Editor::select_all_selectables_using_cursor (EditorCursor *cursor, bool after)
}
void
-Editor::select_all_selectables_using_edit (bool after)
+Editor::select_all_selectables_using_edit (bool after, bool from_context_menu)
{
framepos_t start;
framepos_t end;
list<Selectable *> touched;
if (after) {
- start = get_preferred_edit_position(EDIT_IGNORE_NONE, true);
+ start = get_preferred_edit_position(EDIT_IGNORE_NONE, from_context_menu);
end = _session->current_end_frame();
} else {
- if ((end = get_preferred_edit_position(EDIT_IGNORE_NONE, true)) > 1) {
+ if ((end = get_preferred_edit_position(EDIT_IGNORE_NONE, from_context_menu)) > 1) {
start = 0;
end -= 1;
} else {