Commit 23e1f819 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

QSettings: Do not use fallback. Our own file is fine enough so far

parent fc14a409
......@@ -56,6 +56,7 @@ EffectsEngine::EffectsEngine()
#endif
QSettings::IniFormat, this );
m_cache->setFallbacksEnabled( false );
//Create the names entry. A bit ugly but faster (I guess...) afterward.
m_names.push_back( QStringList() );
m_names.push_back( QStringList() );
......
......@@ -339,6 +339,7 @@ MainWindow::loadVlmcPreferences()
{
//FIXME: Manually load vlmc version to force settings clear?
QSettings s;
s.setFallbacksEnabled( false );
foreach ( QString key, s.allKeys() )
{
QVariant value = s.value( key );
......
......@@ -69,6 +69,7 @@ VLMCmain( int argc, char **argv )
qRegisterMetaType<QUuid>( "QUuid" );
QSettings s;
s.setFallbacksEnabled( false );
LanguageHelper::getInstance()->languageChanged(
s.value( "vlmc/VLMCLang", "default" ) );
......
......@@ -51,6 +51,7 @@ SettingsManager::setValue( const QString &key,
return true;
QSettings sett;
sett.setFallbacksEnabled( false );
sett.setValue( key, value );
sett.sync();
return true;
......@@ -109,6 +110,7 @@ SettingsManager::save() const
m_classicSettings.lockForRead();
QSettings sett;
sett.setFallbacksEnabled( false );
SettingsContainer::SettingMap::const_iterator it = m_classicSettings.settings().begin();
SettingsContainer::SettingMap::const_iterator ed = m_classicSettings.settings().end();
......
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