Fix for #419: update project title on file save

git-svn-id: http://svn.osgeo.org/qgis/trunk@6186 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2006-12-04 22:30:34 +00:00
parent cf7f5d7b8e
commit 8eae1062fe

View File

@ -2819,6 +2819,7 @@ bool QgisApp::fileSave()
{
if ( QgsProject::instance()->write() )
{
setTitleBarText_(*this); // update title bar
statusBar()->message(tr("Saved project to:") + " " + QgsProject::instance()->filename() );
if (isNewProject)
@ -2901,6 +2902,7 @@ void QgisApp::fileSaveAs()
if ( QgsProject::instance()->write() )
{
setTitleBarText_(*this); // update title bar
statusBar()->message(tr("Saved project to:") + " " + QgsProject::instance()->filename() );
// add this to the list of recently used project files
saveRecentProjectPath(fullPath.filePath(), settings);