mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Arrangement Sidebar: follow-edits locates to selected section
This commit is contained in:
parent
d2b083f385
commit
b6e9f37007
1 changed files with 6 additions and 0 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue