Index: src/app/qgisapp.cpp =================================================================== --- src/app/qgisapp.cpp (revision 14851) +++ src/app/qgisapp.cpp (working copy) @@ -3532,6 +3532,8 @@ QSettings settings; saveRecentProjectPath( fullPath.filePath(), settings ); } + + emit projectSaved(); } else { @@ -3578,6 +3580,7 @@ statusBar()->showMessage( tr( "Saved project to: %1" ).arg( QgsProject::instance()->fileName() ) ); // add this to the list of recently used project files saveRecentProjectPath( saveFilePath, settings ); + emit projectSaved(); } else { Index: src/app/qgisapp.h =================================================================== --- src/app/qgisapp.h (revision 14851) +++ src/app/qgisapp.h (working copy) @@ -785,6 +785,13 @@ signal for when this happens. */ void newProject(); + /** emitted when a project file is successfully saved + @note + This is useful for plug-ins that store properties with project files. A + plug-in can connect to this signal. When it is emitted, the plug-in + knows to write whatever it needs to. + */ + void projectSaved(); //! emitted when a new bookmark is added void bookmarkAdded(); Index: src/app/qgisappinterface.cpp =================================================================== --- src/app/qgisappinterface.cpp (revision 14851) +++ src/app/qgisappinterface.cpp (working copy) @@ -57,6 +57,8 @@ this, SIGNAL( newProjectCreated() ) ); connect( qgis, SIGNAL( projectRead() ), this, SIGNAL( projectRead() ) ); + connect( qgis, SIGNAL( projectSaved() ), + this, SIGNAL( projectSaved() ) ); } QgisAppInterface::~QgisAppInterface() Index: src/gui/qgisinterface.h =================================================================== --- src/gui/qgisinterface.h (revision 14851) +++ src/gui/qgisinterface.h (working copy) @@ -356,7 +356,16 @@ Added in v1.6 */ void newProjectCreated(); + /** emitted when a project is saved. + + @note + A plug-in can connect to this signal to save data associated with the + the project. + Added in v1.7 + */ + void projectSaved(); + }; // FIXME: also in core/qgis.h