Skip to content
Browse files

apply #5970

  • Loading branch information...
1 parent c59a66d commit 299857e347ccc77a3b280acbb7d812bdbefdc7d2 @jef-n jef-n committed
Showing with 4 additions and 7 deletions.
  1. +4 −7 src/app/qgisapp.cpp
View
11 src/app/qgisapp.cpp
@@ -3192,7 +3192,7 @@ bool QgisApp::fileSave()
lastUsedDir + "/" + QgsProject::instance()->title(),
tr( "QGis files" ) + " (*.qgs *.QGS)" );
if ( path.isEmpty() )
- return true;
+ return false;
QFileInfo fullPath( path );
@@ -3276,10 +3276,6 @@ void QgisApp::fileSaveAs()
} // QgisApp::fileSaveAs
-
-
-
-
// Open the project file corresponding to the
// path at the given index in mRecentProjectPaths
void QgisApp::openProject( QAction *action )
@@ -3294,8 +3290,8 @@ void QgisApp::openProject( QAction *action )
if ( saveDirty() )
{
addProject( debugme );
-
}
+
//set the projections enabled icon in the status bar
int myProjectionEnabledFlag =
QgsProject::instance()->readNumEntry( "SpatialRefSys", "/ProjectionsEnabled", 0 );
@@ -3303,6 +3299,7 @@ void QgisApp::openProject( QAction *action )
} // QgisApp::openProject
+
/**
Open the specified project file; prompt to save previous project if necessary.
Used to process a commandline argument or OpenDocument AppleEvent.
@@ -3315,7 +3312,7 @@ void QgisApp::openProject( const QString & fileName )
// error handling and reporting is in addProject() function
addProject( fileName );
}
- return ;
+ return;
}

0 comments on commit 299857e

Please sign in to comment.
Something went wrong with that request. Please try again.