Fix addition of new formats

Regression at cb0a4c66
This commit is contained in:
Guillaume Munch 2016-11-09 15:42:43 +01:00
parent fb264663d8
commit 3233a822f3

View File

@ -1989,7 +1989,7 @@ void PrefFileformats::updateView()
defaultFormatCB->clear();
defaultOTFFormatCB->clear();
form_->formats().sort();
for (Format const & f : formats) {
for (Format const & f : form_->formats()) {
QString const prettyname = toqstr(translateIfPossible(f.prettyname()));
formatsCB->addItem(prettyname,
QVariant(form_->formats().getNumber(f.name())));