Commit 1711cd64 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Clean the project name when closed.

parent b00e1927
...@@ -251,8 +251,9 @@ bool ProjectManager::closeProject() ...@@ -251,8 +251,9 @@ bool ProjectManager::closeProject()
delete m_projectFile; delete m_projectFile;
m_projectFile = NULL; m_projectFile = NULL;
} }
m_projectName = QString();
//This one is for the mainwindow, to update the title bar //This one is for the mainwindow, to update the title bar
emit projectUpdated( ProjectManager::unSavedProject, true ); emit projectUpdated( projectName(), true );
//This one is for every part that need to clean something when the project is closed. //This one is for every part that need to clean something when the project is closed.
emit projectClosed(); emit projectClosed();
return true; 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