This commit is contained in:
ws 2014-10-06 16:36:15 +02:00
parent 1c3de28a5e
commit 9910ad73ff

View file

@ -308,9 +308,7 @@ void MuseScore::editInstrList()
sli->setStaff(staff);
staff->setDefaultClefType(sli->defaultClefType());
// rootScore->undoInsertStaff(staff, rstaff);
Key nKey = part->staff(0)->key(0);
Key nKey = part->staves()->empty() ? Key::C : part->staff(0)->key(0);
staff->setKey(0, nKey);
rootScore->undoInsertStaff(staff, rstaff, !sli->linked());