Index: src/libchcore/ConfigNodeContainer.cpp =================================================================== diff -u -rb1e03eb232a784d6e2d40f67cbbbb33be0972228 -r87049cc3ff8e2886cfbe078d0ab81d3556eba8ea --- src/libchcore/ConfigNodeContainer.cpp (.../ConfigNodeContainer.cpp) (revision b1e03eb232a784d6e2d40f67cbbbb33be0972228) +++ src/libchcore/ConfigNodeContainer.cpp (.../ConfigNodeContainer.cpp) (revision 87049cc3ff8e2886cfbe078d0ab81d3556eba8ea) @@ -557,7 +557,8 @@ void ConfigNodeContainer::AddEntry(PCTSTR pszPropName, int iIndex, const TString& strValue) { - m_mic.insert(ConfigNode(++m_stLastObjectID, pszPropName, iIndex, strValue)); + std::pair pairInsert = m_mic.insert(ConfigNode(++m_stLastObjectID, pszPropName, iIndex, strValue)); + pairInsert.first->m_setModifications.reset(); } } Index: src/libchcore/TConfig.cpp =================================================================== diff -u -rb1e03eb232a784d6e2d40f67cbbbb33be0972228 -r87049cc3ff8e2886cfbe078d0ab81d3556eba8ea --- src/libchcore/TConfig.cpp (.../TConfig.cpp) (revision b1e03eb232a784d6e2d40f67cbbbb33be0972228) +++ src/libchcore/TConfig.cpp (.../TConfig.cpp) (revision 87049cc3ff8e2886cfbe078d0ab81d3556eba8ea) @@ -191,7 +191,7 @@ spRowReader->GetValue(_T("node_order"), iOrder); spRowReader->GetValue(_T("value"), strValue); - m_pImpl->AddEntry(strName, iOrder, strValue); + m_pImpl->AddEntry(strName, iOrder, strValue); // also resets modification state inside } }