From 932b07b7b0e91292c689b412da727f14727d22c5 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 30 May 2021 08:35:04 -0500 Subject: [PATCH] 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 --- libs/ardour/track.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 41a905fd2a..ff11f022da 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -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 ();