summaryrefslogtreecommitdiff
path: root/muse2/muse/songfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/songfile.cpp')
-rw-r--r--muse2/muse/songfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/muse2/muse/songfile.cpp b/muse2/muse/songfile.cpp
index 90805175..b07d1243 100644
--- a/muse2/muse/songfile.cpp
+++ b/muse2/muse/songfile.cpp
@@ -1462,6 +1462,11 @@ void MusE::read(MusECore::Xml& xml, bool doReadMidiPorts, bool isTemplate)
{
MusEGlobal::song->read(xml, isTemplate);
MusEGlobal::audio->msgUpdateSoloStates();
+ // Inform the rest of the app that the song (may) have changed, using these flags.
+ // After this function is called, the caller can do a general Song::update() MINUS these flags,
+ // like in MusE::loadProjectFile1() - the only place calling so far, as of this writing.
+ // Some existing windows need this, like arranger, some don't which are dynamically created after this.
+ MusEGlobal::song->update(SC_TRACK_INSERTED);
}
else if (tag == "midiport")
readMidiport(xml);