[vlmc-devel] Project: Watch for ILoadSave::load errors

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:09:43 2014 +0300| [7faa3e7ed687e07c25d6ae19aef6fcc51d9c5a20] | committer: Hugo Beauzée-Luyssen

Project: Watch for ILoadSave::load errors

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

 src/Project/Project.cpp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
index 4c85a46..e20f24d 100644
--- a/src/Project/Project.cpp
+++ b/src/Project/Project.cpp
@@ -171,7 +171,11 @@ Project::loadProject( const QString &fileName )
     }
 
     foreach (ILoadSave* listener, m_loadSave)
-        listener->load( doc );
+        if ( listener->load( doc ) == false )
+        {
+            vlmcCritical() << "Failed to load project";
+            return false;
+        }
     m_projectFile->close();
     return true;
 }



More information about the Vlmc-devel mailing list