fixed persistance of start mode

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 0978af0fb8
commit 2c83aa1781
  1. 12
      src/core/UBPreferencesController.cpp

@ -174,20 +174,12 @@ void UBPreferencesController::init()
// display tab
for(int i=0; i<mPreferencesUI->keyboardPaletteKeyButtonSize->count(); i++)
if (mPreferencesUI->keyboardPaletteKeyButtonSize->itemText(i) ==
settings->boardKeyboardPaletteKeyBtnSize->get().toString())
{
if (mPreferencesUI->keyboardPaletteKeyButtonSize->itemText(i) == settings->boardKeyboardPaletteKeyBtnSize->get().toString()) {
mPreferencesUI->keyboardPaletteKeyButtonSize->setCurrentIndex(i);
break;
}
for(int i=0; i<mPreferencesUI->startModeComboBox->count(); i++)
if (mPreferencesUI->startModeComboBox->itemText(i) ==
settings->appStartMode->get().toString())
{
mPreferencesUI->startModeComboBox->setCurrentIndex(i);
break;
}
mPreferencesUI->startModeComboBox->setCurrentIndex(settings->appStartMode->get().toInt());
mPreferencesUI->useExternalBrowserCheckBox->setChecked(settings->webUseExternalBrowser->get().toBool());
mPreferencesUI->displayBrowserPageCheckBox->setChecked(settings->webShowPageImmediatelyOnMirroredScreen->get().toBool());

Loading…
Cancel
Save