[vlmc-devel] commit: ProjectManager: Move the GUI stuff in the GUI class. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Tue Jun 1 02:20:01 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jun 1 02:12:02 2010 +0200| [f0072cc5c340b5da555980b49c8744d035928706] | committer: Hugo Beauzée-Luyssen
ProjectManager: Move the GUI stuff in the GUI class.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=f0072cc5c340b5da555980b49c8744d035928706
---
src/Gui/project/GuiProjectManager.cpp | 5 ++++-
src/Project/ProjectManager.cpp | 2 --
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/Gui/project/GuiProjectManager.cpp b/src/Gui/project/GuiProjectManager.cpp
index 86261e9..1b4bddc 100644
--- a/src/Gui/project/GuiProjectManager.cpp
+++ b/src/Gui/project/GuiProjectManager.cpp
@@ -127,7 +127,10 @@ GUIProjectManager::closeProject()
{
if ( askForSaveIfModified() == false )
return false;
- return ProjectManager::closeProject();
+ bool ret = ProjectManager::closeProject();
+ //This one is for the mainwindow, to update the title bar
+ emit projectUpdated( projectName(), true );
+ return ret;
}
void
diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index a45494f..bf05a3d 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -224,8 +224,6 @@ ProjectManager::closeProject()
m_projectFile = NULL;
}
m_projectName = QString();
- //This one is for the mainwindow, to update the title bar
- emit projectUpdated( projectName(), true );
//This one is for every part that need to clean something when the project is closed.
emit projectClosed();
return true;
More information about the Vlmc-devel
mailing list