We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 75e2252 commit 4a60e18Copy full SHA for 4a60e18
src/providers/arcgisrest/qgsamsprovider.cpp
@@ -108,7 +108,9 @@ void QgsAmsLegendFetcher::handleFinished()
108
{
109
QVariantMap queryResultMap = result.toMap();
110
QString layerId = queryResultMap[QStringLiteral( "layerId" )].toString();
111
- if ( layerId != dataSource.param( QStringLiteral( "layer" ) ) && !mProvider->subLayers().contains( layerId ) )
+ if ( !dataSource.param( QStringLiteral( "layer" ) ).isNull()
112
+ && layerId != dataSource.param( QStringLiteral( "layer" ) )
113
+ && !mProvider->subLayers().contains( layerId ) )
114
115
continue;
116
}
0 commit comments