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

Settings: Do not close setting files when it's not guaranted to exist

parent 7faa3e7e
...@@ -111,8 +111,7 @@ Settings::load( const QDomDocument& document ) ...@@ -111,8 +111,7 @@ Settings::load( const QDomDocument& document )
if ( element.isNull() == true ) if ( element.isNull() == true )
{ {
vlmcWarning() << "Invalid settings node"; vlmcWarning() << "Invalid settings node";
m_settingsFile->close(); return false;
return false ;
} }
QDomElement s = element.firstChildElement( "setting" ); QDomElement s = element.firstChildElement( "setting" );
while ( s.isNull() == false ) while ( s.isNull() == false )
......
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