Commit 97110bc7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

ProjectManager: fix inverted logic.

parent d35e8c89
...@@ -88,7 +88,7 @@ QStringList ProjectManager::recentsProjects() const ...@@ -88,7 +88,7 @@ QStringList ProjectManager::recentsProjects() const
void ProjectManager::loadWorkflow() void ProjectManager::loadWorkflow()
{ {
QDomElement root = m_domDocument->documentElement(); QDomElement root = m_domDocument->documentElement();
bool needSave; bool savedState;
MainWorkflow::getInstance()->loadProject( root ); MainWorkflow::getInstance()->loadProject( root );
loadTimeline( root ); loadTimeline( root );
...@@ -96,11 +96,11 @@ void ProjectManager::loadWorkflow() ...@@ -96,11 +96,11 @@ void ProjectManager::loadWorkflow()
if ( m_projectFile != NULL ) if ( m_projectFile != NULL )
{ {
appendToRecentProject( m_projectFile->fileName() ); appendToRecentProject( m_projectFile->fileName() );
needSave = false; savedState = true;
} }
else else
needSave = true; savedState = false;
emit projectUpdated( projectName(), needSave ); emit projectUpdated( projectName(), savedState );
delete m_domDocument; delete m_domDocument;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment