[vlmc-devel] commit: ProjectManager: Don't add a project that fail to load to the " recent projects" list (Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Fri Apr 9 19:15:17 CEST 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Fri Apr  9 19:10:13 2010 +0200| [58b567997a6254360650091b95f0920c67689e5b] | committer: Hugo Beauzee-Luyssen 

ProjectManager: Don't add a project that fail to load to the "recent projects" list

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

 src/Project/ProjectManager.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index b3ec97a..65fbbb0 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -79,6 +79,8 @@ void    ProjectManager::loadTimeline()
     SettingsManager::getInstance()->load( root );
     emit projectUpdated( projectName(), true );
     emit projectLoaded();
+    if ( m_projectFile != NULL )
+        appendToRecentProject( m_projectFile->fileName() );
     delete m_domDocument;
 }
 
@@ -98,9 +100,7 @@ void    ProjectManager::loadProject( const QString& fileName )
 #ifdef WITH_GUI
     m_needSave = false;
 #endif
-    if ( ProjectManager::isBackupFile( fileName ) == false )
-        appendToRecentProject( QFileInfo( *m_projectFile ).absoluteFilePath() );
-    else
+    if ( ProjectManager::isBackupFile( fileName ) == true )
     {
         //Delete the project file representation, so the next time the user
         //saves its project, vlmc will ask him where to save it.



More information about the Vlmc-devel mailing list