Commit 3a0b6f91 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

Project: Pass projectName and projectFilePath on the projectSaved signal

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 51292d2e
......@@ -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.
......
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