Prevent locate while recording due to clock edits #7383

This follows Editor::button_press_handler() ignoring mouse-press
while recording: Limitation is in the GUI only.
This commit is contained in:
Robin Gareus 2020-06-03 19:56:08 +02:00
parent 1b3cca8a6d
commit 378a0af4a7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2180,6 +2180,9 @@ AudioClock::locate ()
if (!_session || is_duration) {
return;
}
if (_session->actively_recording()) {
return;
}
_session->request_locate (current_time(), RollIfAppropriate);
}