mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 04:36:30 +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 "keyboard.h"
|
||||||
#include "main_clock.h"
|
#include "main_clock.h"
|
||||||
#include "public_editor.h"
|
#include "public_editor.h"
|
||||||
|
#include "ui_config.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include "pbd/i18n.h"
|
#include "pbd/i18n.h"
|
||||||
|
|
@ -233,6 +234,11 @@ EditorSections::selection_changed ()
|
||||||
Selection& s (PublicEditor::instance ().get_selection ());
|
Selection& s (PublicEditor::instance ().get_selection ());
|
||||||
s.clear ();
|
s.clear ();
|
||||||
s.set (start, end);
|
s.set (start, end);
|
||||||
|
|
||||||
|
if (UIConfiguration::instance ().get_follow_edits ()) {
|
||||||
|
_session->request_locate (start.samples());
|
||||||
|
}
|
||||||
|
|
||||||
_selection_change.unblock ();
|
_selection_change.unblock ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue