[vlmc-devel] ProjectManager: Always emit projectSaved when saving the project

Hugo Beauzée-Luyssen git at videolan.org
Sat Mar 29 16:19:42 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Mar 29 15:56:49 2014 +0200| [03dddec96e5de3ff6b0f9515aa85f8b58b6e9526] | committer: Hugo Beauzée-Luyssen

ProjectManager: Always emit projectSaved when saving the project

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=03dddec96e5de3ff6b0f9515aa85f8b58b6e9526
---

 src/Project/ProjectManager.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 0cc0748..a94b6e6 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -189,6 +189,7 @@ ProjectManager::saveProject( const QString& fileName )
     QFile   projectFile( fileName );
     projectFile.open( QFile::WriteOnly );
     projectFile.write( projectString );
+    emit projectSaved();
 }
 
 void
@@ -272,7 +273,6 @@ ProjectManager::saveAs()
     if ( fileName.isEmpty() )
         return ;
     saveProject( fileName );
-    emit projectSaved();
     emit projectUpdated( projectName(), true );
 }
 



More information about the Vlmc-devel mailing list