13
0

Playlist UI tweaks: assign a pgroup when a playist is first recorded to

* this solves the problem where the first 'take' was not grouped because
 the user has not explicitly created a take for the group yet
This commit is contained in:
Ben Loftis 2021-05-30 08:35:04 -05:00
parent 28aa22e11a
commit 932b07b7b0

View File

@ -1054,6 +1054,11 @@ Track::use_captured_audio_sources (SourceList& srcs, CaptureInfos const & captur
/* XXX what now? */
}
/*if this playlist doesn't already have a pgroup (a new track won't) then assign it one, using the take-id of the first recording) */
if (pl->pgroup_id().length()==0) {
pl->set_pgroup_id(afs->take_id());
}
pl->clear_changes ();
pl->set_capture_insertion_in_progress (true);
pl->freeze ();