diff --git a/components/mobileshell/mobileshellsettings.cpp b/components/mobileshell/mobileshellsettings.cpp index 80de24c9..685ff53d 100644 --- a/components/mobileshell/mobileshellsettings.cpp +++ b/components/mobileshell/mobileshellsettings.cpp @@ -20,8 +20,8 @@ MobileShellSettings *MobileShellSettings::self() MobileShellSettings::MobileShellSettings(QObject *parent) : QObject{parent} + , m_config{KSharedConfig::openConfig(CONFIG_FILE, KConfig::SimpleConfig)} { - m_config = KSharedConfig::openConfig(CONFIG_FILE, KConfig::SimpleConfig); m_configWatcher = KConfigWatcher::create(m_config); connect(m_configWatcher.data(), &KConfigWatcher::configChanged, this, [this](const KConfigGroup &group, const QByteArrayList &names) -> void { diff --git a/components/mobileshell/shellutil.cpp b/components/mobileshell/shellutil.cpp index 374e4650..0be9b330 100644 --- a/components/mobileshell/shellutil.cpp +++ b/components/mobileshell/shellutil.cpp @@ -26,8 +26,8 @@ ShellUtil::ShellUtil(QObject *parent) : QObject{parent} , m_launchingApp{nullptr} + , m_localeConfig{KSharedConfig::openConfig(QStringLiteral("kdeglobals"), KConfig::SimpleConfig)} { - m_localeConfig = KSharedConfig::openConfig(QStringLiteral("kdeglobals"), KConfig::SimpleConfig); m_localeConfigWatcher = KConfigWatcher::create(m_localeConfig); // watch for changes to locale config, to update 12/24 hour time