diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/kconfigdata.cpp | 7 | ||||
| -rw-r--r-- | src/core/kconfigini.cpp | 2 | 
2 files changed, 5 insertions, 4 deletions
| diff --git a/src/core/kconfigdata.cpp b/src/core/kconfigdata.cpp index b479a598..0d6a7bb9 100644 --- a/src/core/kconfigdata.cpp +++ b/src/core/kconfigdata.cpp @@ -18,8 +18,9 @@ QDebug operator<<(QDebug dbg, const KEntryKey &key)  QDebug operator<<(QDebug dbg, const KEntry &entry)  { -    dbg.nospace() << "[" << entry.mValue << (entry.bDirty ? " dirty" : "") << (entry.bGlobal ? " global" : "") << (entry.bImmutable ? " immutable" : "") -                  << (entry.bDeleted ? " deleted" : "") << (entry.bReverted ? " reverted" : "") << (entry.bExpand ? " expand" : "") << "]"; +    dbg.nospace() << "[" << entry.mValue << (entry.bDirty ? " dirty" : "") << (entry.bGlobal ? " global" : "") +                  << (entry.bOverridesGlobal ? " overrides global" : "") << (entry.bImmutable ? " immutable" : "") << (entry.bDeleted ? " deleted" : "") +                  << (entry.bReverted ? " reverted" : "") << (entry.bExpand ? " expand" : "") << "]";      return dbg.space();  } @@ -164,7 +165,7 @@ bool KEntryMap::setEntry(const QByteArray &group, const QByteArray &key, const Q              }          }          if (it.value() != e) { -            // qDebug() << "changing" << k << "from" << e.mValue << "to" << value; +            // qDebug() << "changing" << k << "from" << it.value().mValue << "to" << value << e;              it.value() = e;              if (k.bDefault) {                  KEntryKey nonDefaultKey(k); diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp index a67e490f..2792cb4f 100644 --- a/src/core/kconfigini.cpp +++ b/src/core/kconfigini.cpp @@ -437,7 +437,7 @@ bool KConfigIniBackend::writeConfig(const QByteArray &locale, KEntryMap &entryMa              } else {                  KEntryKey defaultKey = key;                  defaultKey.bDefault = true; -                if (!entryMap.contains(defaultKey)) { +                if (!entryMap.contains(defaultKey) && !it->bOverridesGlobal) {                      writeMap.remove(key); // remove the deleted entry if there is no default                      // qDebug() << "Detected as deleted=>removed:" << key.mGroup << key.mKey << "global=" << bGlobal;                  } else { | 
