13
0

Consolidate startup state = Clean; calls

This also emits DirtyChanged() only if needed.
This commit is contained in:
Robin Gareus 2020-02-24 22:16:56 +01:00
parent 1074c16299
commit f16d97a013
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -399,11 +399,9 @@ Session::post_engine_init ()
ltc_tx_initialize(); ltc_tx_initialize();
_state_of_the_state = Clean;
Port::set_connecting_blocked (false); Port::set_connecting_blocked (false);
DirtyChanged (); /* EMIT SIGNAL */ set_clean ();
/* Now, finally, we can fill the playback buffers */ /* Now, finally, we can fill the playback buffers */
@ -425,9 +423,7 @@ Session::session_loaded ()
{ {
SessionLoaded(); SessionLoaded();
_state_of_the_state = Clean; set_clean ();
DirtyChanged (); /* EMIT SIGNAL */
if (_is_new) { if (_is_new) {
save_state (""); save_state ("");
@ -651,8 +647,6 @@ Session::create (const string& session_template, BusProfile const * bus_profile)
} }
_state_of_the_state = Clean;
/* set up Master Out and Monitor Out if necessary */ /* set up Master Out and Monitor Out if necessary */
if (bus_profile) { if (bus_profile) {
@ -670,6 +664,8 @@ Session::create (const string& session_template, BusProfile const * bus_profile)
} }
} }
set_clean ();
return 0; return 0;
} }