[vlmc-devel] Core: Return a correct value in loadProject

Yikai Lu git at videolan.org
Mon Jul 17 17:42:27 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Jul 17 17:23:56 2017 +0200| [9bf708722782841cdde0de0505de2da28c1a1ebb] | committer: Yikai Lu

Core: Return a correct value in loadProject

> https://code.videolan.org/videolan/vlmc/commit/9bf708722782841cdde0de0505de2da28c1a1ebb
---

 src/Main/Core.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Main/Core.cpp b/src/Main/Core.cpp
index 08f02c28..dd0b298e 100644
--- a/src/Main/Core.cpp
+++ b/src/Main/Core.cpp
@@ -110,9 +110,7 @@ Core::loadProject(const QString& fileName)
     if ( fileName.isEmpty() == true )
         return false;
     //FIXME: What if the project was unsaved, and the user wants to cancel the operation?
-    m_currentProject->load( fileName );
-
-    return true;
+    return m_currentProject->load( fileName );
 }
 
 bool



More information about the Vlmc-devel mailing list