[vlmc-devel] Settings: Accept empty values when loading

Hugo Beauzée-Luyssen git at videolan.org
Sun Mar 30 17:48:40 CEST 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Mar 30 16:00:18 2014 +0300| [e8b50ac5f382d234328a811fcb6e3237915f0a7d] | committer: Hugo Beauzée-Luyssen

Settings: Accept empty values when loading

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=e8b50ac5f382d234328a811fcb6e3237915f0a7d
---

 src/Settings/Settings.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index 448cab0..6b7ec0a 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -122,7 +122,7 @@ Settings::load()
         QString     key = s.attribute( "key" );
         QString     value = s.attribute( "value" );
 
-        if ( key.isEmpty() == true || value.isEmpty() == true )
+        if ( key.isEmpty() == true )
             vlmcWarning() << "Invalid setting node.";
         else
         {



More information about the Vlmc-devel mailing list