[vlmc-devel] [PATCH 3/3] Fix the wrong path to save ProjectFile

Yikai Lu luyikei.qmltu at gmail.com
Wed Mar 9 06:05:07 CET 2016


Now that a project file is in its project folder.
---
 src/Project/Project.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
index b01e9f3..67c92f5 100644
--- a/src/Project/Project.cpp
+++ b/src/Project/Project.cpp
@@ -176,7 +176,10 @@ Project::newProject( const QString& projectName, const QString& projectFolderPat
 {
     closeProject();
     m_settings->setValue( "vlmc/ProjectName", projectName );
-    m_projectFile = new QFile( projectFolderPath );
+    m_projectFile = new QFile( QString("%1/%2.vlmc")
+                               .arg( projectFolderPath )
+                               .arg( QString( projectName ).replace(" ", "_") )
+                               );
     save();
 }
 
-- 
1.9.1



More information about the Vlmc-devel mailing list