Commit 45ecdd6d authored by Victor Yacovlev's avatar Victor Yacovlev

Qt4 build fix

parent c75cb788
......@@ -67,7 +67,10 @@ void DeclarativeSettingsPageImpl::init()
if (control) {
const QString defaultText = control->itemText(entry.defaultValue.toInt());
const QString value = settings_->value(key, defaultText).toString();
control->setCurrentText(value);
int index = control->findText(value);
if (-1!=index) {
control->setCurrentIndex(index);
}
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment