Commit d17c20d2 authored by Halla Rempt's avatar Halla Rempt
Browse files

Do not show the language switch warning when going back to the default

BUG:362961
parent a5edc825
...@@ -288,23 +288,7 @@ void KSwitchLanguageDialog::slotOk() ...@@ -288,23 +288,7 @@ void KSwitchLanguageDialog::slotOk()
void KSwitchLanguageDialog::slotDefault() void KSwitchLanguageDialog::slotDefault()
{ {
const QStringList defaultLanguages = d->applicationLanguageList();
setApplicationSpecificLanguage(QByteArray()); setApplicationSpecificLanguage(QByteArray());
// read back the new default
QString language = QString::fromLatin1(getApplicationSpecificLanguage("en_US"));
if (defaultLanguages != (QStringList() << language)) {
KMessageBox::information(
this,
i18n("The language for this application has been changed. The change will take effect the next time the application is started."), //text
i18n("Application Language Changed"), //caption
QStringLiteral("ApplicationLanguageChangedWarning") //dontShowAgainName
);
}
accept(); accept();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment