diff options
| author | Alexander Lohnau <alexander.lohnau@gmx.de> | 2022-02-01 18:17:02 +0100 | 
|---|---|---|
| committer | Alexander Lohnau <alexander.lohnau@gmx.de> | 2022-02-17 17:59:11 +0000 | 
| commit | 828f52439fb02f224cc034e65dd82a0138a60662 (patch) | |
| tree | b30cbd9b0777a78103e77079f2e8beb06cb90232 /src/qml | |
| parent | 17364e0942543329b8317aed79580b7840134287 (diff) | |
| download | kconfig-828f52439fb02f224cc034e65dd82a0138a60662.tar.gz kconfig-828f52439fb02f224cc034e65dd82a0138a60662.tar.bz2 | |
KConfigPropertyMap: Clean up internal leftovers of autosave feature
This has should be done explicitely, as the docs explain.
This causes issues for the KScreenLocker KCM port.
Diffstat (limited to 'src/qml')
| -rw-r--r-- | src/qml/kconfigpropertymap.cpp | 12 | 
1 files changed, 0 insertions, 12 deletions
| diff --git a/src/qml/kconfigpropertymap.cpp b/src/qml/kconfigpropertymap.cpp index 55b2991d..f31b09c7 100644 --- a/src/qml/kconfigpropertymap.cpp +++ b/src/qml/kconfigpropertymap.cpp @@ -34,7 +34,6 @@ public:      KConfigPropertyMap *q;      QPointer<KCoreConfigSkeleton> config;      bool updatingConfigValue = false; -    bool autosave = true;      bool notify = false;  }; @@ -122,11 +121,6 @@ void KConfigPropertyMapPrivate::writeConfig()          item->setProperty(q->value(item->key()));      } -    if (autosave) { -        updatingConfigValue = true; -        config.data()->save(); -        updatingConfigValue = false; -    }  }  void KConfigPropertyMapPrivate::writeConfigValue(const QString &key, const QVariant &value) @@ -136,12 +130,6 @@ void KConfigPropertyMapPrivate::writeConfigValue(const QString &key, const QVari          updatingConfigValue = true;          item->setWriteFlags(notify ? KConfigBase::Notify : KConfigBase::Normal);          item->setProperty(value); -        if (autosave) { -            config.data()->save(); -            // why read? read will update KConfigSkeletonItem::mLoadedValue, -            // allowing a write operation to be performed next time -            config.data()->read(); -        }          updatingConfigValue = false;      }  } | 
