Skip to content
Permalink
Browse files

Fix double update of dialog

  • Loading branch information
nyalldawson committed Mar 22, 2019
1 parent fe50e24 commit 2af0d0de9345ccb51072cc6463df6afd1f39c3ef
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/gui/qgsdatumtransformdialog.cpp
@@ -55,6 +55,9 @@ QgsDatumTransformDialog::QgsDatumTransformDialog( const QgsCoordinateReferenceSy
mDestCrsLabel->setText( QgsProjectionSelectionWidget::crsOptionText( destinationCrs ) );
}

QgsSettings settings;
mHideDeprecatedCheckBox->setChecked( settings.value( QStringLiteral( "Windows/DatumTransformDialog/hideDeprecated" ), true ).toBool() );

connect( mHideDeprecatedCheckBox, &QCheckBox::stateChanged, this, [ = ] { load(); } );
connect( mDatumTransformTableWidget, &QTableWidget::currentItemChanged, this, &QgsDatumTransformDialog::tableCurrentItemChanged );

@@ -66,11 +69,6 @@ QgsDatumTransformDialog::QgsDatumTransformDialog( const QgsCoordinateReferenceSy
mDestinationCrs = destinationCrs;
mDatumTransforms = QgsDatumTransform::datumTransformations( sourceCrs, destinationCrs );

setOKButtonEnabled();

QgsSettings settings;
mHideDeprecatedCheckBox->setChecked( settings.value( QStringLiteral( "Windows/DatumTransformDialog/hideDeprecated" ), true ).toBool() );

mLabelSrcDescription->clear();
mLabelDstDescription->clear();

0 comments on commit 2af0d0d

Please sign in to comment.
You can’t perform that action at this time.