Fix #269952: show new templates in new score wizard w/o restart
This commit is contained in:
parent
3fdfab33f4
commit
ed3aa5ae5a
2 changed files with 13 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -527,6 +527,16 @@ bool NewWizard::emptyScore() const
|
|||
return val;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// updateValues
|
||||
//---------------------------------------------------------
|
||||
|
||||
void NewWizard::updateValues() const
|
||||
{
|
||||
//p2->buildInstrumentsList();
|
||||
p4->buildTemplatesList();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// hideEvent
|
||||
//---------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue