diff --git a/kdecore/config/kconfigdata.cpp b/kdecore/config/kconfigdata.cpp index 74a068be..1124978c 100644 --- a/kdecore/config/kconfigdata.cpp +++ b/kdecore/config/kconfigdata.cpp @@ -100,7 +100,7 @@ bool KEntryMap::setEntry(const QByteArray& group, const QByteArray& key, const Q return false; } - it.value() = e; + insert(it.key(), e); return true; } @@ -159,7 +159,7 @@ bool KEntryMap::setEntry(const QByteArray& group, const QByteArray& key, const Q if(it.value() != e) { //qDebug() << "changing" << k << "from" << e.mValue << "to" << value; - it.value() = e; + insert(it.key(), e); if(k.bDefault) { KEntryKey nonDefaultKey(k);