[vlmc-devel] commit: ProjectManager: Removed never used signal. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Tue Jun 1 02:20:00 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jun  1 01:53:30 2010 +0200| [d35e8c89509f332f565a4b4d51fde757eec468d0] | committer: Hugo Beauzée-Luyssen 

ProjectManager: Removed never used signal.

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

 src/Project/ProjectManager.cpp |   11 +++++++++--
 src/Project/ProjectManager.h   |    1 -
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index a7f78e8..a475f2e 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -88,14 +88,20 @@ QStringList ProjectManager::recentsProjects() const
 void    ProjectManager::loadWorkflow()
 {
     QDomElement     root = m_domDocument->documentElement();
+    bool            needSave;
 
     MainWorkflow::getInstance()->loadProject( root );
     loadTimeline( root );
     SettingsManager::getInstance()->load( root );
-    emit projectUpdated( projectName(), true );
-    emit projectLoaded();
     if ( m_projectFile != NULL )
+    {
         appendToRecentProject( m_projectFile->fileName() );
+        needSave = false;
+    }
+    else
+        needSave = true;
+    emit projectUpdated( projectName(), needSave );
+
     delete m_domDocument;
 }
 
@@ -126,6 +132,7 @@ void    ProjectManager::loadProject( const QString& fileName )
         //saves its project, vlmc will ask him where to save it.
         delete m_projectFile;
         m_projectFile = NULL;
+        m_needSave = true;
     }
 
     QDomElement     root = m_domDocument->documentElement();
diff --git a/src/Project/ProjectManager.h b/src/Project/ProjectManager.h
index 75461a8..a579c0a 100644
--- a/src/Project/ProjectManager.h
+++ b/src/Project/ProjectManager.h
@@ -114,7 +114,6 @@ signals:
      */
     void            projectSaved();
     void            projectClosed();
-    void            projectLoaded();
 };
 
 #endif // PROJECTMANAGER_H



More information about the Vlmc-devel mailing list