diff --git a/config/schemas/mod.json b/config/schemas/mod.json index f77fdea91..ca74f80ef 100644 --- a/config/schemas/mod.json +++ b/config/schemas/mod.json @@ -5,7 +5,7 @@ "description" : "Format used to define main mod file (mod.json) in VCMI", "required" : [ "name", "description", "version", "author", "contact", "modType" ], "definitions" : { - "localizeable" : { + "localizable" : { "type":"object", "additionalProperties" : false, "required" : [ "name", "description", "author", "modType" ], @@ -114,23 +114,23 @@ }, "english" : { - "$ref" : "#/definitions/localizeable" + "$ref" : "#/definitions/localizable" }, "german" : { - "$ref" : "#/definitions/localizeable" + "$ref" : "#/definitions/localizable" }, "polish" : { - "$ref" : "#/definitions/localizeable" + "$ref" : "#/definitions/localizable" }, "russian" : { - "$ref" : "#/definitions/localizeable" + "$ref" : "#/definitions/localizable" }, "ukrainian" : { - "$ref" : "#/definitions/localizeable" + "$ref" : "#/definitions/localizable" }, "artifacts": { diff --git a/launcher/settingsView/csettingsview_moc.cpp b/launcher/settingsView/csettingsview_moc.cpp index fb7318be1..8ac81f65e 100644 --- a/launcher/settingsView/csettingsview_moc.cpp +++ b/launcher/settingsView/csettingsview_moc.cpp @@ -323,8 +323,8 @@ void CSettingsView::on_comboBoxLanguage_currentIndexChanged(int index) Settings node = settings.write["general"]["language"]; node->String() = languageTagList[index]; - if ( qApp->activeWindow() && dynamic_cast(qApp->activeWindow()) ) - dynamic_cast(qApp->activeWindow())->updateTranslation(); + if ( auto mainWindow = dynamic_cast(qApp->activeWindow()) ) + mainWindow->updateTranslation(); } void CSettingsView::changeEvent(QEvent *event)