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

Corrected title bar updated when saving a project.

parent ed123dd1
......@@ -64,7 +64,6 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
QSettings s;
m_recentsProjects = s.value( "RecentsProjects" ).toStringList();
m_projectName = ProjectManager::unSavedProject;
#ifdef WITH_CRASHHANDLER
signal( SIGSEGV, ProjectManager::signalHandler );
signal( SIGFPE, ProjectManager::signalHandler );
......@@ -209,6 +208,7 @@ void ProjectManager::saveProject( bool saveAs /*= true*/ )
return ;
__saveProject( m_projectFile->fileName() );
emit projectSaved();
emit projectUpdated( projectName(), true );
}
void ProjectManager::__saveProject( const QString &fileName )
......
......@@ -116,6 +116,11 @@ signals:
* - The revision (if activated) has changed
*/
void projectUpdated( const QString& projectName, bool savedState );
/**
* \brief Used to signal that the project has been saved.
*
* Right now, it is only used by the undo stack to flag the current state as clean.
*/
void projectSaved();
void projectClosed();
};
......
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