Skip to content

Commit

Permalink
Fix #269952: show new templates in new score wizard w/o restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Nov 5, 2018
1 parent 3fdfab3 commit ed3aa5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mscore/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,10 @@ MasterScore* MuseScore::getNewFile()
{
if (!newWizard)
newWizard = new NewWizard(this);
else
else {
newWizard->updateValues();
newWizard->restart();
}
if (newWizard->exec() != QDialog::Accepted)
return 0;
int measures = newWizard->measures();
Expand Down
10 changes: 10 additions & 0 deletions mscore/newwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,16 @@ bool NewWizard::emptyScore() const
return val;
}

//---------------------------------------------------------
// updateValues
//---------------------------------------------------------

void NewWizard::updateValues() const
{
//p2->buildInstrumentsList();
p4->buildTemplatesList();
}

//---------------------------------------------------------
// hideEvent
//---------------------------------------------------------
Expand Down

0 comments on commit ed3aa5a

Please sign in to comment.