Commit 93675a6c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SettingsManager: Do not save private settings to the preference file

parent 3f5c15c5
......@@ -80,10 +80,17 @@ SettingsManager::setValue( const QString &key,
SettingList::iterator it = getPair( m_classicSettings, key );
if ( it != m_classicSettings.end() )
SettingValue* v = (*it).value;
// We don't want private values in our QSettings, that would be
// saved in the preference files, and they're called private for a reason
v->set( value );
if ( v->flags().testFlag( SettingValue::Private ) )
QSettings sett;
sett.setValue( key, value );
(*it).value->set( value );
return ;
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