[vlmc-devel] Let projectLoaded signal have a projectFilePath as a parameter.

Yikai Lu git at videolan.org
Mon Mar 14 21:31:36 CET 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Mar 12 15:30:52 2016 +0900| [f420e00682a23fb8c9957d4f19c38ad4fcdc1351] | committer: Hugo Beauzée-Luyssen

Let projectLoaded signal have a projectFilePath as a parameter.

Since we decided to have a project folder, we need to pass "projectFilePath" because it can be different from "projectName"

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/f420e00682a23fb8c9957d4f19c38ad4fcdc1351
---

 src/Project/Project.cpp | 2 +-
 src/Project/Project.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
index 0fb7360..7bf2413 100644
--- a/src/Project/Project.cpp
+++ b/src/Project/Project.cpp
@@ -147,7 +147,7 @@ Project::load( const QString& path )
     emit cleanStateChanged( m_isClean );
     if ( autoBackupFound == false )
         m_projectFile->close();
-    emit projectLoaded( projectName );
+    emit projectLoaded( projectName, path );
     if ( outdatedBackupFound == true )
         emit outdatedBackupFileFound();
     if ( autoBackupFound == true )
diff --git a/src/Project/Project.h b/src/Project/Project.h
index 508277f..6b7b35a 100644
--- a/src/Project/Project.h
+++ b/src/Project/Project.h
@@ -113,7 +113,7 @@ class Project : public QObject
         void                cleanStateChanged( bool value );
 
         void                projectLoading( const QString& projectName );
-        void                projectLoaded( const QString& projectName );
+        void                projectLoaded( const QString& projectName, const QString& projectFilePath );
         void                projectClosed();
         void                backupProjectLoaded();
         void                outdatedBackupFileFound();



More information about the Vlmc-devel mailing list