Skip to content
Permalink
Browse files

apply #5970

  • Loading branch information
jef-n committed Jul 7, 2012
1 parent c59a66d commit 299857e347ccc77a3b280acbb7d812bdbefdc7d2
Showing with 4 additions and 7 deletions.
  1. +4 −7 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,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.
@@ -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.
You can’t perform that action at this time.