summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2019-02-12 11:15:34 -0600
committerBen Loftis <ben@harrisonconsoles.com>2019-02-12 11:35:57 -0600
commit3e442ae52bdffd1da453ba6c3bd46bf034576a1b (patch)
tree56af7e98319609f6df97d6936c332670208d0003 /gtk2_ardour/editor_ops.cc
parent688bd284583e1b1184ddf7826e49822ac032b098 (diff)
Session-range behavior (gtk2 part)
* Both the session-start and session-end point should follow the is-free option * Rename the end-is-free option to session-range-is-free, to reflect that change * This fixes the problem: recording before the start marker would move the Start, even if the user had already fixed the End marker.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 961b79a6ad..c01a8c5fe9 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -441,7 +441,7 @@ Editor::nudge_forward (bool next, bool force_playhead)
loc->set_end (max_samplepos, false, true, divisions);
}
if (loc->is_session_range()) {
- _session->set_end_is_free (false);
+ _session->set_session_range_is_free (false);
}
}
if (!in_command) {
@@ -535,7 +535,7 @@ Editor::nudge_backward (bool next, bool force_playhead)
loc->set_end (loc->length(), false, true, get_grid_music_divisions(0));
}
if (loc->is_session_range()) {
- _session->set_end_is_free (false);
+ _session->set_session_range_is_free (false);
}
}
if (!in_command) {
@@ -2266,6 +2266,8 @@ Editor::set_session_start_from_playhead ()
commit_reversible_command ();
}
+
+ _session->set_session_range_is_free (false);
}
void
@@ -2291,7 +2293,7 @@ Editor::set_session_end_from_playhead ()
commit_reversible_command ();
}
- _session->set_end_is_free (false);
+ _session->set_session_range_is_free (false);
}
@@ -6600,7 +6602,7 @@ Editor::set_session_extents_from_selection ()
commit_reversible_command ();
}
- _session->set_end_is_free (false);
+ _session->set_session_range_is_free (false);
}
void