kdecore: fix KEntryMap value change

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-07-29 12:20:55 +00:00
parent 3ed846617d
commit 5cc29351d6

View file

@ -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);