From f3db7f00d6a758309a0ca8571f8bfd71d09dd220 Mon Sep 17 00:00:00 2001 From: Han Young Date: Mon, 4 Jul 2022 00:16:59 +0800 Subject: [PATCH] fix changes not saved to config file on non-glibc systems --- kcms/region_language/kcmregionandlang.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcms/region_language/kcmregionandlang.cpp b/kcms/region_language/kcmregionandlang.cpp index 1009030d8..f64651e2d 100644 --- a/kcms/region_language/kcmregionandlang.cpp +++ b/kcms/region_language/kcmregionandlang.cpp @@ -38,6 +38,8 @@ KCMRegionAndLang::KCMRegionAndLang(QObject *parent, const KPluginMetaData &data, connect(m_generator, &LocaleGeneratorBase::success, this, &KCMRegionAndLang::generateFinished); connect(m_generator, &LocaleGeneratorBase::needsFont, this, &KCMRegionAndLang::requireInstallFont); connect(m_generator, &LocaleGeneratorBase::success, this, &KCMRegionAndLang::saveToConfigFile); + connect(m_generator, &LocaleGeneratorBase::userHasToGenerateManually, this, &KCMRegionAndLang::saveToConfigFile); + connect(m_generator, &LocaleGeneratorBase::needsFont, this, &KCMRegionAndLang::saveToConfigFile); // if we don't support auto locale generation for current system (BSD, musl etc.), userHasToGenerateManually regarded as success if (strcmp(m_generator->metaObject()->className(), "LocaleGeneratorBase") != 0) {