Navigation Menu

Skip to content

Commit

Permalink
Try to show fixed icons
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent b0d8d8e commit 380d02e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgsgeometryvalidationmodel.cpp
Expand Up @@ -52,8 +52,15 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )

switch ( role )
{
case Qt::DecorationRole:
if ( topologyError->status() == QgsGeometryCheckError::StatusFixed )
return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmCheckGeometry.svg" ) );
else
return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmLineIntersection.svg" ) );

case Qt::DisplayRole:
FALLTHROUGH;

case DetailsRole:
{
const QgsFeatureId fid = topologyError->featureId();
Expand Down

0 comments on commit 380d02e

Please sign in to comment.