cut buffer must not mess around with libardour selection

Fixes range mode selection/cut/copy that would previously clear track selection
This commit is contained in:
Paul Davis 2017-06-07 12:14:44 -04:00
parent ca815acd61
commit 6ac76734f5
3 changed files with 10 additions and 4 deletions

View file

@ -57,10 +57,11 @@ struct AudioRangeComparator {
}
};
Selection::Selection (const PublicEditor* e)
Selection::Selection (const PublicEditor* e, bool mls)
: tracks (e)
, editor (e)
, next_time_id (0)
, manage_libardour_selection (mls)
{
clear ();
@ -1544,6 +1545,10 @@ Selection::set (const TrackViewList& track_list)
void
Selection::clear_tracks (bool)
{
if (!manage_libardour_selection) {
return;
}
Session* s = editor->session();
if (s) {
CoreSelection& selection (s->selection());