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

Settings: Avoid silent failure when using an unexisting setting

parent 615b4296
......@@ -128,6 +128,7 @@ Settings::setValue(const QString &key, const QVariant &value)
(*it)->set( value );
return true;
}
Q_ASSERT_X( false, __FILE__, "setting value without a created variable" );
return false;
}
......@@ -139,6 +140,7 @@ Settings::value(const QString &key)
SettingMap::iterator it = m_settings.find( key );
if ( it != m_settings.end() )
return *it;
Q_ASSERT_X( false, __FILE__, "fetching value without a created variable" );
return NULL;
}
......
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