mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix crash in envmanager
To delete an entry, we need to ensure the KConfigGroup and none of its parent config group is not const otherwise we it an assert in KConfig.
This commit is contained in:
parent
e0a4614c25
commit
d9330ad10d
1 changed files with 2 additions and 2 deletions
|
|
@ -136,8 +136,8 @@ void Settings::saveConfigSetting(const QString &fileName, const QString &group,
|
|||
// NOTE: this deletes the stored value from the config after loading
|
||||
const QString Settings::loadSavedConfigSetting(KSharedConfig::Ptr &config, const QString &fileName, const QString &group, const QString &key, bool write)
|
||||
{
|
||||
const auto savedGroup = KConfigGroup{m_mobileConfig, SAVED_CONFIG_GROUP};
|
||||
const auto fileGroup = KConfigGroup{&savedGroup, fileName};
|
||||
auto savedGroup = KConfigGroup{m_mobileConfig, SAVED_CONFIG_GROUP};
|
||||
auto fileGroup = KConfigGroup{&savedGroup, fileName};
|
||||
auto keyGroup = KConfigGroup{&fileGroup, group};
|
||||
|
||||
if (!keyGroup.hasKey(key)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue