region selections and moves should have optional preroll when playhead follows edits

git-svn-id: svn://localhost/ardour2/branches/3.0@13552 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Ben Loftis 2012-11-26 23:07:21 +00:00
parent e63da83c53
commit 62c8963170
2 changed files with 3 additions and 5 deletions

View File

@ -899,9 +899,7 @@ RegionMoveDrag::finished (GdkEvent* ev, bool movement_occurred)
}
if (_editor->session() && Config->get_always_play_range()) {
_editor->session()->request_locate (_editor->get_selection().regions.start());
}
_editor->maybe_locate_with_edit_preroll (_editor->get_selection().regions.start());
}
void

View File

@ -1296,8 +1296,8 @@ Editor::region_selection_changed ()
sensitize_all_region_actions (true);
}
if (_session && Config->get_always_play_range() && !_session->transport_rolling() && !selection->regions.empty()) {
_session->request_locate (selection->regions.start());
if (_session && !_session->transport_rolling() && !selection->regions.empty()) {
maybe_locate_with_edit_preroll (selection->regions.start());
}
}