From 734ec962690c542d4058e7952142c6ec082ede55 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 3 Jan 2022 21:48:04 -0500 Subject: [PATCH] Added logic to ensure playback cursor is visible when follow cursor option toggles from false to true. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index dbdf5aa7..cf1102f9 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -3015,6 +3015,11 @@ void TasEditorWindow::playbackFrameForwardFull(void) void TasEditorWindow::playbackFollowCursorCb(bool val) { taseditorConfig.followPlaybackCursor = val; + + if ( val ) + { + pianoRoll->ensureTheLineIsVisible( currFrameCounter ); + } } // ---------------------------------------------------------------------------------------------- void TasEditorWindow::playbackTurboSeekCb(bool val)