Fixed #5515 (Crash on Preferences/Applications)
This commit is contained in:
parent
7d762ca9f7
commit
935b37da0e
|
@ -175,9 +175,11 @@ void SettingsDialog::SaveSettingValues() const
|
||||||
SaveCheckboxValue(&settings, mUI.mEnableInconclusive, SETTINGS_INCONCLUSIVE_ERRORS);
|
SaveCheckboxValue(&settings, mUI.mEnableInconclusive, SETTINGS_INCONCLUSIVE_ERRORS);
|
||||||
SaveCheckboxValue(&settings, mUI.mShowErrorId, SETTINGS_SHOW_ERROR_ID);
|
SaveCheckboxValue(&settings, mUI.mShowErrorId, SETTINGS_SHOW_ERROR_ID);
|
||||||
|
|
||||||
QListWidgetItem *currentLang = mUI.mListLanguages->currentItem();
|
const QListWidgetItem *currentLang = mUI.mListLanguages->currentItem();
|
||||||
|
if (currentLang) {
|
||||||
const QString langcode = currentLang->data(LangCodeRole).toString();
|
const QString langcode = currentLang->data(LangCodeRole).toString();
|
||||||
settings.setValue(SETTINGS_LANGUAGE, langcode);
|
settings.setValue(SETTINGS_LANGUAGE, langcode);
|
||||||
|
}
|
||||||
|
|
||||||
const int count = mUI.mListIncludePaths->count();
|
const int count = mUI.mListIncludePaths->count();
|
||||||
QString includePaths;
|
QString includePaths;
|
||||||
|
|
Loading…
Reference in New Issue