Skip to content

Commit

Permalink
apply #5970
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 7, 2012
1 parent c59a66d commit 299857e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/app/qgisapp.cpp
Expand Up @@ -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 );

Expand Down Expand Up @@ -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 )
Expand All @@ -3294,15 +3290,16 @@ 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 );
mMapCanvas->mapRenderer()->setProjectionsEnabled( myProjectionEnabledFlag );

} // QgisApp::openProject


/**
Open the specified project file; prompt to save previous project if necessary.
Used to process a commandline argument or OpenDocument AppleEvent.
Expand All @@ -3315,7 +3312,7 @@ void QgisApp::openProject( const QString & fileName )
// error handling and reporting is in addProject() function
addProject( fileName );
}
return ;
return;
}


Expand Down

0 comments on commit 299857e

Please sign in to comment.