Skip to content

Commit

Permalink
Fix for #7307, project Save function not correctly adding path to Ope…
Browse files Browse the repository at this point in the history
…n Recent Projects menu

- Did work for Save As.., but not Save
- Add 5 second timeout for 'Saved project to: ' status bar message for Save and Save As..
  • Loading branch information
dakcarto committed Mar 10, 2013
1 parent 5872d49 commit 6741cff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3638,7 +3638,7 @@ bool QgisApp::fileSave()
if ( path.isEmpty() )
return false;

QFileInfo fullPath( path );
fullPath.setFile( path );

// make sure we have the .qgs extension in the file name
if ( "qgs" != fullPath.suffix().toLower() )
Expand All @@ -3653,7 +3653,7 @@ bool QgisApp::fileSave()
if ( QgsProject::instance()->write() )
{
setTitleBarText_( *this ); // update title bar
statusBar()->showMessage( tr( "Saved project to: %1" ).arg( QgsProject::instance()->fileName() ) );
statusBar()->showMessage( tr( "Saved project to: %1" ).arg( QgsProject::instance()->fileName() ), 5000 );

if ( isNewProject )
{
Expand Down Expand Up @@ -3712,7 +3712,7 @@ void QgisApp::fileSaveAs()
if ( QgsProject::instance()->write() )
{
setTitleBarText_( *this ); // update title bar
statusBar()->showMessage( tr( "Saved project to: %1" ).arg( QgsProject::instance()->fileName() ) );
statusBar()->showMessage( tr( "Saved project to: %1" ).arg( QgsProject::instance()->fileName() ), 5000 );
// add this to the list of recently used project files
saveRecentProjectPath( fullPath.filePath(), settings );
}
Expand Down

0 comments on commit 6741cff

Please sign in to comment.