Skip to content

Commit

Permalink
Don't show an icon for unknown geometry types
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 12, 2021
1 parent f764670 commit 94b7ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/qgsprovidersublayermodel.cpp
Expand Up @@ -173,7 +173,7 @@ QVariant QgsProviderSublayerModel::data( const QModelIndex &index, int role ) co
{
if ( index.column() == 0 )
return details.type() == QgsMapLayerType::VectorLayer
? QgsIconUtils::iconForWkbType( details.wkbType() )
? ( details.wkbType() != QgsWkbTypes::Unknown ? QgsIconUtils::iconForWkbType( details.wkbType() ) : QVariant() )
: QgsIconUtils::iconForLayerType( details.type() );
else
return QVariant();
Expand Down

0 comments on commit 94b7ef9

Please sign in to comment.