Skip to content

Commit fecb0de

Browse files
committedOct 25, 2011
Set prompt as default behaviour for unknown CRS
1 parent 1a1f5eb commit fecb0de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
327327
{
328328
static QString authid = QString::null;
329329
QSettings mySettings;
330-
QString myDefaultProjectionOption = mySettings.value( "/Projections/defaultBehaviour" ).toString();
330+
QString myDefaultProjectionOption = mySettings.value( "/Projections/defaultBehaviour", "prompt" ).toString();
331331
if ( myDefaultProjectionOption == "prompt" )
332332
{
333333
//@note this class is not a descendent of QWidget so we cant pass

‎src/app/qgsoptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
177177
// set the display update threshold
178178
spinBoxUpdateThreshold->setValue( settings.value( "/Map/updateThreshold" ).toInt() );
179179
//set the default projection behaviour radio buttongs
180-
if ( settings.value( "/Projections/defaultBehaviour" ).toString() == "prompt" )
180+
if ( settings.value( "/Projections/defaultBehaviour", "prompt" ).toString() == "prompt" )
181181
{
182182
radPromptForProjection->setChecked( true );
183183
}
184-
else if ( settings.value( "/Projections/defaultBehaviour" ).toString() == "useProject" )
184+
else if ( settings.value( "/Projections/defaultBehaviour", "prompt" ).toString() == "useProject" )
185185
{
186186
radUseProjectProjection->setChecked( true );
187187
}

‎src/plugins/georeferencer/qgsopenrasterdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void QgsOpenRasterDialog::on_tbnSelectRaster_clicked()
9393

9494
// What DOING this code?
9595
QgsProject* prj = QgsProject::instance();
96-
QString projBehaviour = settings.value( "/Projections/defaultBehaviour" ).toString();
96+
QString projBehaviour = settings.value( "/Projections/defaultBehaviour", "prompt" ).toString();
9797
QString projectCRS = prj->readEntry( "SpatialRefSys", "/ProjectCRSProj4String" );
9898
int projectCrsId = prj->readNumEntry( "SpatialRefSys", "/ProjectCrsId" );
9999

0 commit comments

Comments
 (0)
Please sign in to comment.