[vlmc-devel] Settings: Do not close setting files when it's not guaranted to exist
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 1 23:16:25 CEST 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Apr 2 00:10:42 2014 +0300| [ed6a15856a351302ee3b9c4bece9fa6f51f4ed12] | committer: Hugo Beauzée-Luyssen
Settings: Do not close setting files when it's not guaranted to exist
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ed6a15856a351302ee3b9c4bece9fa6f51f4ed12
---
src/Settings/Settings.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index 0c5eed1..e9e9265 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -111,8 +111,7 @@ Settings::load( const QDomDocument& document )
if ( element.isNull() == true )
{
vlmcWarning() << "Invalid settings node";
- m_settingsFile->close();
- return false ;
+ return false;
}
QDomElement s = element.firstChildElement( "setting" );
while ( s.isNull() == false )
More information about the Vlmc-devel
mailing list