Skip to content

Commit

Permalink
disable projection selection in project properties, while OTFP is off
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 15, 2012
1 parent 3c02fe1 commit be8ec1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -67,6 +67,7 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
mProjectSrsId = myRenderer->destinationCrs().srsid();
QgsDebugMsg( "Read project CRSID: " + QString::number( mProjectSrsId ) );
projectionSelector->setSelectedCrsId( mProjectSrsId );
projectionSelector->setEnabled( myProjectionEnabled );

///////////////////////////////////////////////////////////
// Properties stored in QgsProject
Expand Down Expand Up @@ -545,6 +546,7 @@ void QgsProjectProperties::on_pbnCanvasColor_clicked()
void QgsProjectProperties::on_cbxProjectionEnabled_stateChanged( int state )
{
btnGrpMapUnits->setEnabled( state == Qt::Unchecked );
projectionSelector->setEnabled( state == Qt::Checked );

if ( state != Qt::Checked )
{
Expand Down

0 comments on commit be8ec1b

Please sign in to comment.