Skip to content
Permalink
Browse files
fix #2753
git-svn-id: http://svn.osgeo.org/qgis/trunk@13595 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 29, 2010
1 parent e1a5597 commit bd1fea120b4f27099437fc173d4de7a90d5750d4
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/app/qgisapp.cpp
@@ -311,8 +311,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
{
QString toProj4;
QSettings mySettings;
QString myDefaultProjectionOption =
mySettings.value( "/Projections/defaultBehaviour" ).toString();
QString myDefaultProjectionOption = mySettings.value( "/Projections/defaultBehaviour" ).toString();
if ( myDefaultProjectionOption == "prompt" )
{
//@note this class is not a descendent of QWidget so we cant pass
@@ -327,15 +326,16 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
mySelector->setSelectedCrsId( defaultCRS.srsid() );
}

QApplication::setOverrideCursor( Qt::ArrowCursor );

if ( mySelector->exec() )
{
QgsDebugMsg( "Layer srs set from dialog: " + QString::number( mySelector->selectedCrsId() ) );
srs->createFromProj4( mySelector->selectedProj4String() );
}
else
{
QApplication::restoreOverrideCursor();
}

QApplication::restoreOverrideCursor();

delete mySelector;
}
else if ( myDefaultProjectionOption == "useProject" )
@@ -3017,7 +3017,7 @@ void QgisApp::newVectorLayer()
openFileDialog->selectFilter( lastUsedFilter );
}

if( openFileDialog->exec() == QDialog::Rejected )
if ( openFileDialog->exec() == QDialog::Rejected )
{
delete openFileDialog;
return;

0 comments on commit bd1fea1

Please sign in to comment.