mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Fix double update of dialog
This commit is contained in:
parent
fe50e24ccf
commit
2af0d0de93
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user