Skip to content

Commit

Permalink
Hide deprecated datum transforms by default
Browse files Browse the repository at this point in the history
Instead of showing by default and requiring users to manually
hide them, reverse this logic and hide deprecated ones by default
and require motivated users to manually opt in to showing them.

Result: less likely for users to accidentally use deprecated
transforms.

Sponsored by ICSM
  • Loading branch information
nyalldawson committed Mar 19, 2019
1 parent c60d559 commit e58cccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsdatumtransformdialog.cpp
Expand Up @@ -59,7 +59,7 @@ QgsDatumTransformDialog::QgsDatumTransformDialog( const QgsCoordinateReferenceSy

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

mLabelSrcDescription->clear();
mLabelDstDescription->clear();
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsdatumtransformdialogbase.ui
Expand Up @@ -32,7 +32,7 @@
<item>
<widget class="QCheckBox" name="mHideDeprecatedCheckBox">
<property name="text">
<string>Hide deprecated</string>
<string>Hide deprecated transformations</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit e58cccb

Please sign in to comment.