From 518e439db34f28851d90ca97e56e05c8fca28d2f Mon Sep 17 00:00:00 2001 From: Stefan Westerfeld Date: Mon, 8 Jul 2024 10:29:38 +0200 Subject: [PATCH] ASE: project.cc: activate new tracks on creation if Project is active Fixes #69. Signed-off-by: Stefan Westerfeld --- ase/project.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ase/project.cc b/ase/project.cc index 23db1b58..157b9707 100644 --- a/ase/project.cc +++ b/ase/project.cc @@ -818,6 +818,8 @@ ProjectImpl::create_track () tracks_.insert (tracks_.end() - int (havemaster), track); emit_event ("track", "insert", { { "track", track }, }); track->_set_parent (this); + if (is_active()) + track->_activate(); emit_notify ("all_tracks"); return track; }