13
0

Do not allow changing the loop range while recording

This commit is contained in:
Robin Gareus 2024-09-24 18:42:58 +02:00
parent 18e0cba1cb
commit 60b3b24cc8
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -5304,7 +5304,12 @@ Editor::get_preferred_edit_position (EditIgnoreOption ignore, bool from_context_
void void
Editor::set_loop_range (timepos_t const & start, timepos_t const & end, string cmd) Editor::set_loop_range (timepos_t const & start, timepos_t const & end, string cmd)
{ {
if (!_session) return; if (!_session) {
return;
}
if (_session->get_play_loop () && _session->actively_recording ()) {
return;
}
begin_reversible_command (cmd); begin_reversible_command (cmd);