Skip to content

Commit 2af0d0d

Browse files
committedMar 22, 2019
Fix double update of dialog
1 parent fe50e24 commit 2af0d0d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎src/gui/qgsdatumtransformdialog.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ QgsDatumTransformDialog::QgsDatumTransformDialog( const QgsCoordinateReferenceSy
5555
mDestCrsLabel->setText( QgsProjectionSelectionWidget::crsOptionText( destinationCrs ) );
5656
}
5757

58+
QgsSettings settings;
59+
mHideDeprecatedCheckBox->setChecked( settings.value( QStringLiteral( "Windows/DatumTransformDialog/hideDeprecated" ), true ).toBool() );
60+
5861
connect( mHideDeprecatedCheckBox, &QCheckBox::stateChanged, this, [ = ] { load(); } );
5962
connect( mDatumTransformTableWidget, &QTableWidget::currentItemChanged, this, &QgsDatumTransformDialog::tableCurrentItemChanged );
6063

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

69-
setOKButtonEnabled();
70-
71-
QgsSettings settings;
72-
mHideDeprecatedCheckBox->setChecked( settings.value( QStringLiteral( "Windows/DatumTransformDialog/hideDeprecated" ), true ).toBool() );
73-
7472
mLabelSrcDescription->clear();
7573
mLabelDstDescription->clear();
7674

0 commit comments

Comments
 (0)
Please sign in to comment.