QTfrontend/gameuiconfig.cpp
changeset 2913 865ae941d59e
parent 2898 c53636f556f8
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2912:76d43f7458ad 2913:865ae941d59e
    83 
    83 
    84 #ifdef SPARKLE_ENABLED
    84 #ifdef SPARKLE_ENABLED
    85         Form->ui.pageOptions->CBAutoUpdate->setChecked(value("misc/autoUpdate", true).toBool());
    85         Form->ui.pageOptions->CBAutoUpdate->setChecked(value("misc/autoUpdate", true).toBool());
    86 #endif
    86 #endif
    87 
    87 
    88 	Form->ui.pageOptions->CBLanguage->setCurrentIndex(Form->ui.pageOptions->CBLanguage->findData(value("misc/locale", QLocale::system().name())));
    88 	Form->ui.pageOptions->CBLanguage->setCurrentIndex(Form->ui.pageOptions->CBLanguage->findData(value("misc/locale", "").toString()));
    89 
    89 
    90 	depth = QApplication::desktop()->depth();
    90 	depth = QApplication::desktop()->depth();
    91 	if (depth < 16) depth = 16;
    91 	if (depth < 16) depth = 16;
    92 	else if (depth > 16) depth = 32;
    92 	else if (depth > 16) depth = 32;
    93 }
    93 }