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

Yikai Lu luyikei.qmltu at gmail.com
Wed Mar 9 05:47:08 CET 2016


Since we decided to have a project folder, we need to pass "projectFilePath" because it can be different from "projectName"
---
 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 ec36345..7eb6699 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 8f6687e..b0be382 100644
--- a/src/Project/Project.h
+++ b/src/Project/Project.h
@@ -112,7 +112,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();
-- 
1.9.1



More information about the Vlmc-devel mailing list