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

ProjectManager: fix inverted logic.

parent d35e8c89
......@@ -88,7 +88,7 @@ QStringList ProjectManager::recentsProjects() const
void ProjectManager::loadWorkflow()
{
QDomElement root = m_domDocument->documentElement();
bool needSave;
bool savedState;
MainWorkflow::getInstance()->loadProject( root );
loadTimeline( root );
......@@ -96,11 +96,11 @@ void ProjectManager::loadWorkflow()
if ( m_projectFile != NULL )
{
appendToRecentProject( m_projectFile->fileName() );
needSave = false;
savedState = true;
}
else
needSave = true;
emit projectUpdated( projectName(), needSave );
savedState = false;
emit projectUpdated( projectName(), savedState );
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