Skip to content

Commit

Permalink
[arcgisrest] Only show 'all layers' item for the AMS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jun 28, 2019
1 parent fcd0615 commit ea27d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/arcgisrest/qgsarcgisrestutils.cpp
Expand Up @@ -1381,8 +1381,8 @@ void QgsArcGisRestUtils::addLayerItems( const std::function< void( const QString
}
}

// Add root MapServer as layer when multiple layers are listed
if ( layerInfoList.count() > 1 && serviceData.contains( QStringLiteral( "supportedImageFormatTypes" ) ) )
// Add root MapServer as raster layer when multiple layers are listed
if ( filter != QgsArcGisRestUtils::Vector && layerInfoList.count() > 1 && serviceData.contains( QStringLiteral( "supportedImageFormatTypes" ) ) )
{
const QString name = QStringLiteral( "(%1)" ).arg( QObject::tr( "All layers" ) );
const QString description = serviceData.value( QStringLiteral( "Comments" ) ).toString();
Expand Down

0 comments on commit ea27d55

Please sign in to comment.