Commit 60ce98a1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SettingsManager: Don't save private vars

parent 2c94e2f7
......@@ -145,7 +145,11 @@ SettingsManager::save() const
SettingHash::const_iterator ed = m_classicSettings.end();
for ( ; it != ed; ++it )
{
if ( ( it.value()->flags() & SettingValue::Private ) != 0 )
continue ;
sett.setValue( it.key(), it.value()->get() );
}
sett.sync();
}
......@@ -158,6 +162,8 @@ SettingsManager::save( QXmlStreamWriter& project ) const
project.writeStartElement( "project" );
while ( it != end )
{
if ( ( it.value()->flags() & SettingValue::Private ) != 0 )
continue ;
project.writeStartElement( "property" );
project.writeAttribute( "key", it.key() );
project.writeAttribute( "value", it.value()->get().toString() );
......
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