Skip to content
Snippets Groups Projects
Commit f34b0739 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

Project: Pass projectName and projectFilePath on the projectSaved signal


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 9242e6b8
No related branches found
No related tags found
No related merge requests found
......@@ -227,8 +227,9 @@ void
Project::saveProject( const QString& fileName )
{
m_settings->setSettingsFile( fileName );
m_settings->save();
emit projectSaved();
bool ret = m_settings->save();
if ( ret == true )
emit projectSaved( m_settings->value( "vlmc/ProjectName" )->get().toString(), fileName );
}
void
......
......@@ -106,10 +106,8 @@ class Project : public QObject
/**
* \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 projectSaved( const QString& projectName, const QString& projectFilePath );
/**
* @brief cleanStateChanged Emited when the clean state changes.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment