[vlmc-devel] [PATCH 2/3] Let projectLoaded signal have a projectFilePath as a parameter. parameter.
Yikai Lu
luyikei.qmltu at gmail.com
Sat Mar 12 07:28:50 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 39a79c9..9a7a9b7 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();
--
1.9.1
More information about the Vlmc-devel
mailing list