13
0

if a Range end is trimmed, in follow-edits mode, locate to the range end so it can be auditioned. (same as trimming a region end)

This commit is contained in:
Ben Loftis 2014-07-03 12:49:59 -05:00
parent 043b76569d
commit 80d1631aa3
2 changed files with 4 additions and 5 deletions

View File

@ -4350,7 +4350,10 @@ SelectionDrag::finished (GdkEvent* event, bool movement_occurred)
s->request_play_range (&_editor->selection->time, true); s->request_play_range (&_editor->selection->time, true);
} else { } else {
if (Config->get_follow_edits() && !s->transport_rolling()) { if (Config->get_follow_edits() && !s->transport_rolling()) {
s->request_locate (_editor->get_selection().time.start()); if (_operation == SelectionEndTrim)
_editor->maybe_locate_with_edit_preroll( _editor->get_selection().time.end_frame());
else
s->request_locate (_editor->get_selection().time.start());
} }
} }
} }

View File

@ -1013,10 +1013,6 @@ Editor::time_selection_changed ()
} else { } else {
ActionManager::set_sensitive (ActionManager::time_selection_sensitive_actions, true); ActionManager::set_sensitive (ActionManager::time_selection_sensitive_actions, true);
} }
if (_session && Config->get_follow_edits() && !_session->transport_rolling() && !selection->time.empty()) {
_session->request_locate (selection->time.start());
}
} }
/** Set all region actions to have a given sensitivity */ /** Set all region actions to have a given sensitivity */