Fix #269952: show new templates in new score wizard w/o restart

This commit is contained in:
Joachim Schmitz 2018-11-05 22:51:04 +01:00
parent 3fdfab33f4
commit ed3aa5ae5a
2 changed files with 13 additions and 1 deletions

View file

@ -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();

View file

@ -527,6 +527,16 @@ bool NewWizard::emptyScore() const
return val;
}
//---------------------------------------------------------
// updateValues
//---------------------------------------------------------
void NewWizard::updateValues() const
{
//p2->buildInstrumentsList();
p4->buildTemplatesList();
}
//---------------------------------------------------------
// hideEvent
//---------------------------------------------------------