1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 05:15:34 +00:00

Register language selector properly

This commit is contained in:
Andrei Kortunov 2023-12-19 10:20:31 +04:00
parent 46dc290b75
commit 8d06a99507
3 changed files with 4 additions and 4 deletions

View file

@ -124,7 +124,7 @@ void Wizard::InstallationPage::startInstallation()
mUnshield->setPath(path);
// Set the right codec to use for Morrowind.ini
QString language(field(QLatin1String("installation.language")).value<QComboBox*>()->currentData().toString());
QString language(field(QLatin1String("installation.language")).toString());
if (language == QLatin1String("Polish"))
{

View file

@ -9,7 +9,7 @@ Wizard::LanguageSelectionPage::LanguageSelectionPage(QWidget* parent)
setupUi(this);
registerField(QLatin1String("installation.language"), languageComboBox);
registerField(QLatin1String("installation.language"), languageComboBox, "currentData", "currentDataChanged");
}
void Wizard::LanguageSelectionPage::initializePage()

View file

@ -270,7 +270,7 @@ void Wizard::MainWizard::runSettingsImporter()
arguments.append(QLatin1String("--encoding"));
// Set encoding
QString language(field(QLatin1String("installation.language")).value<QComboBox*>()->currentData().toString());
QString language(field(QLatin1String("installation.language")).toString());
if (language == QLatin1String("Polish"))
{
arguments.append(QLatin1String("win1250"));
@ -391,7 +391,7 @@ void Wizard::MainWizard::reject()
void Wizard::MainWizard::writeSettings()
{
// Write the encoding and language settings
QString language(field(QLatin1String("installation.language")).value<QComboBox*>()->currentData().toString());
QString language(field(QLatin1String("installation.language")).toString());
mLauncherSettings.setLanguage(language);
if (language == QLatin1String("Polish"))