Skip to content
Permalink
Browse files
Don't show an icon for unknown geometry types
  • Loading branch information
nyalldawson committed Jul 12, 2021
1 parent f764670 commit 94b7ef9ea9d073135ee5ad5eea305ffa09d304be
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/qgsprovidersublayermodel.cpp
@@ -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();

0 comments on commit 94b7ef9

Please sign in to comment.