Set the combo box to the actual rating in the configuration

This commit is contained in:
Luca Beltrame 2015-02-12 00:40:28 +01:00
parent ad933d96dd
commit 0166cb0360

View file

@ -36,6 +36,7 @@ GeneralPage::GeneralPage(DanbooruSettings* preferences, QWidget* parent): QWidge
QRegularExpression regex(urlRegex);
QRegularExpressionValidator* validator = new QRegularExpressionValidator(regex);
kcfg_Boards->lineEdit()->setValidator(validator);
kcfg_MaxRating->setCurrentIndex(preferences->maxRating());
}