save and restore MuseJazz correctly in style dialog

This commit is contained in:
lasconic 2014-08-18 19:48:21 +02:00
parent 12e848f8a4
commit f4a34a2f2a

View file

@ -723,7 +723,7 @@ void EditStyle::setValues()
musicalTextFont->addItem("Bravura Text", "Bravura Text");
musicalTextFont->addItem("MuseJazz", "MuseJazz");
QString tfont(lstyle.value(StyleIdx::MusicalTextFont).toString());
idx = tfont == "Bravura Text" ? 1 : 0;
idx = musicalTextFont->findData(tfont);
musicalTextFont->setCurrentIndex(idx);
showHeader->setChecked(lstyle.value(StyleIdx::showHeader).toBool());