[QGIS Commit] r13595 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat May 29 11:47:26 EDT 2010
Author: jef
Date: 2010-05-29 11:47:25 -0400 (Sat, 29 May 2010)
New Revision: 13595
Modified:
trunk/qgis/src/app/qgisapp.cpp
Log:
fix #2753
Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp 2010-05-29 15:27:36 UTC (rev 13594)
+++ trunk/qgis/src/app/qgisapp.cpp 2010-05-29 15:47:25 UTC (rev 13595)
@@ -311,8 +311,7 @@
{
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 @@
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 @@
openFileDialog->selectFilter( lastUsedFilter );
}
- if( openFileDialog->exec() == QDialog::Rejected )
+ if ( openFileDialog->exec() == QDialog::Rejected )
{
delete openFileDialog;
return;
More information about the QGIS-commit
mailing list