[vlmc-devel] commit: ProjectManager: fix inverted logic. ( 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 02:03:10 2010 +0200| [97110bc770f54f237abe1192b8eddd569670441f] | committer: Hugo Beauzée-Luyssen
ProjectManager: fix inverted logic.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=97110bc770f54f237abe1192b8eddd569670441f
---
src/Project/ProjectManager.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index a475f2e..a45494f 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -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;
}
More information about the Vlmc-devel
mailing list