Skip to content

Commit

Permalink
Merge pull request #437 from MarcSabatella/chordname-root
Browse files Browse the repository at this point in the history
make sure new scores get a chordList
  • Loading branch information
lasconic committed Aug 9, 2013
2 parents 3aebe10 + 8b4831c commit 0a0a42c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mscore/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ void MuseScore::newFile()
score->fileInfo()->setFile(createDefaultName());
newWizard->createInstruments(score);
}
if (!score->style()->chordList()->loaded()) {
if (score->style()->value(ST_chordsXmlFile).toBool())
score->style()->chordList()->read("chords.xml");
score->style()->chordList()->read(score->style()->value(ST_chordDescriptionFile).toString());
}
if (!newWizard->title().isEmpty())
score->fileInfo()->setFile(newWizard->title());
Measure* pm = score->firstMeasure();
Expand Down

0 comments on commit 0a0a42c

Please sign in to comment.