Skip to content

Commit

Permalink
Highlight deprecated transformations in red
Browse files Browse the repository at this point in the history
Another way to dissuade users from mistakenly choosing these
transformations

Sponsored by ICSM
  • Loading branch information
nyalldawson committed Mar 19, 2019
1 parent e58cccb commit 9de67c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsdatumtransformdialog.cpp
Expand Up @@ -94,9 +94,10 @@ void QgsDatumTransformDialog::load( const QPair<int, int> &selectedDatumTransfor
if ( info.datumTransformId == -1 )
continue;

if ( mHideDeprecatedCheckBox->isChecked() && info.deprecated )
if ( info.deprecated )
{
itemHidden = true;
itemHidden = mHideDeprecatedCheckBox->isChecked();
item->setForeground( QBrush( QColor( 255, 0, 0 ) ) );
}

QString toolTipString;
Expand Down

0 comments on commit 9de67c8

Please sign in to comment.