Skip to content

Commit 82046b5

Browse files
author
jef
committedMay 29, 2010

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
311311
{
312312
QString toProj4;
313313
QSettings mySettings;
314-
QString myDefaultProjectionOption =
315-
mySettings.value( "/Projections/defaultBehaviour" ).toString();
314+
QString myDefaultProjectionOption = mySettings.value( "/Projections/defaultBehaviour" ).toString();
316315
if ( myDefaultProjectionOption == "prompt" )
317316
{
318317
//@note this class is not a descendent of QWidget so we cant pass
@@ -327,15 +326,16 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
327326
mySelector->setSelectedCrsId( defaultCRS.srsid() );
328327
}
329328

329+
QApplication::setOverrideCursor( Qt::ArrowCursor );
330+
330331
if ( mySelector->exec() )
331332
{
332333
QgsDebugMsg( "Layer srs set from dialog: " + QString::number( mySelector->selectedCrsId() ) );
333334
srs->createFromProj4( mySelector->selectedProj4String() );
334335
}
335-
else
336-
{
337-
QApplication::restoreOverrideCursor();
338-
}
336+
337+
QApplication::restoreOverrideCursor();
338+
339339
delete mySelector;
340340
}
341341
else if ( myDefaultProjectionOption == "useProject" )
@@ -3017,7 +3017,7 @@ void QgisApp::newVectorLayer()
30173017
openFileDialog->selectFilter( lastUsedFilter );
30183018
}
30193019

3020-
if( openFileDialog->exec() == QDialog::Rejected )
3020+
if ( openFileDialog->exec() == QDialog::Rejected )
30213021
{
30223022
delete openFileDialog;
30233023
return;

0 commit comments

Comments
 (0)
Please sign in to comment.