From b6e9f370076ec29bea721e9b7ceac4ba098b5e94 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 7 Sep 2023 07:46:22 -0500 Subject: [PATCH] Arrangement Sidebar: follow-edits locates to selected section --- gtk2_ardour/editor_sections.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor_sections.cc b/gtk2_ardour/editor_sections.cc index 805034855c..bc242007aa 100644 --- a/gtk2_ardour/editor_sections.cc +++ b/gtk2_ardour/editor_sections.cc @@ -30,6 +30,7 @@ #include "keyboard.h" #include "main_clock.h" #include "public_editor.h" +#include "ui_config.h" #include "utils.h" #include "pbd/i18n.h" @@ -233,6 +234,11 @@ EditorSections::selection_changed () Selection& s (PublicEditor::instance ().get_selection ()); s.clear (); s.set (start, end); + + if (UIConfiguration::instance ().get_follow_edits ()) { + _session->request_locate (start.samples()); + } + _selection_change.unblock (); }