Add a signal to indicate VCA creation

As opposed to VCAAdded this is not emitted when re-loading a session
and only emitted when a user creates a new VCA.
This commit is contained in:
Robin Gareus
2019-03-01 18:56:56 +01:00
parent f098a6fb06
commit 9a8464ff40
2 changed files with 5 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ public:
VCAList::size_type n_vcas() const { return _vcas.size(); }
PBD::Signal1<void,VCAList&> VCAAdded;
PBD::Signal0<void> VCACreated; /*<< is not emitted during set_state */
XMLNode& get_state();
int set_state (XMLNode const&, int version);

View File

@@ -111,6 +111,10 @@ VCAManager::create_vca (uint32_t howmany, std::string const & name_template)
VCAAdded (vcal); /* EMIT SIGNAL */
if (!vcal.empty ()) {
VCACreated (); /* EMIT SIGNAL */
}
_session.set_dirty ();
return vcal;