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 // display tab
for(int i=0; i<mPreferencesUI->keyboardPaletteKeyButtonSize->count(); i++) for(int i=0; i<mPreferencesUI->keyboardPaletteKeyButtonSize->count(); i++)
if (mPreferencesUI->keyboardPaletteKeyButtonSize->itemText(i) == if (mPreferencesUI->keyboardPaletteKeyButtonSize->itemText(i) == settings->boardKeyboardPaletteKeyBtnSize->get().toString()) {
settings->boardKeyboardPaletteKeyBtnSize->get().toString())
{
mPreferencesUI->keyboardPaletteKeyButtonSize->setCurrentIndex(i); mPreferencesUI->keyboardPaletteKeyButtonSize->setCurrentIndex(i);
break; break;
} }
for(int i=0; i<mPreferencesUI->startModeComboBox->count(); i++) mPreferencesUI->startModeComboBox->setCurrentIndex(settings->appStartMode->get().toInt());
if (mPreferencesUI->startModeComboBox->itemText(i) ==
settings->appStartMode->get().toString())
{
mPreferencesUI->startModeComboBox->setCurrentIndex(i);
break;
}
mPreferencesUI->useExternalBrowserCheckBox->setChecked(settings->webUseExternalBrowser->get().toBool()); mPreferencesUI->useExternalBrowserCheckBox->setChecked(settings->webUseExternalBrowser->get().toBool());
mPreferencesUI->displayBrowserPageCheckBox->setChecked(settings->webShowPageImmediatelyOnMirroredScreen->get().toBool()); mPreferencesUI->displayBrowserPageCheckBox->setChecked(settings->webShowPageImmediatelyOnMirroredScreen->get().toBool());

Loading…
Cancel
Save