Skip to content
Snippets Groups Projects
Commit 58b56799 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

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

parent 4635b6de
No related branches found
Tags 0.1.0
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment