Commit 5139a1e9 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SettingsManager: Fixed infinite loop.

parent f0884627
......@@ -160,14 +160,13 @@ SettingsManager::save( QXmlStreamWriter& project ) const
SettingHash::const_iterator end = m_xmlSettings.end();
project.writeStartElement( "project" );
while ( it != end )
for ( ; it != end; ++it )
{
if ( ( it.value()->flags() & SettingValue::Private ) != 0 )
continue ;
project.writeStartElement( "property" );
project.writeAttribute( "key", it.key() );
project.writeAttribute( "value", it.value()->get().toString() );
++it;
project.writeEndElement();
}
project.writeEndElement();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment