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

ProjectManager: Move the GUI stuff in the GUI class.

parent 97110bc7
......@@ -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
......
......@@ -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;
......
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