Skip to content
Permalink
Browse files

Fix nested WMS layer data items

  • Loading branch information
wonder-sk committed Sep 1, 2014
1 parent 45d6584 commit 9464698f67b706f61bd88bf46447adf1fc638232
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsdataitems.cpp
@@ -255,7 +255,7 @@ QgsWMSLayerItem::QgsWMSLayerItem( QgsDataItem* parent, QString name, QString pat
// Attention, the name may be empty
QgsDebugMsg( QString::number( layerProperty.orderId ) + " " + layerProperty.name + " " + layerProperty.title );
QString pathName = layerProperty.name.isEmpty() ? QString::number( layerProperty.orderId ) : layerProperty.name;
QgsWMSLayerItem * layer = new QgsWMSLayerItem( this, layerProperty.title, mPath + "/" + pathName, mCapabilitiesProperty, mDataSourceUri, layerProperty );
QgsWMSLayerItem * layer = new QgsWMSLayerItem( this, layerProperty.title, mPath + "/" + pathName, mCapabilitiesProperty, dataSourceUri, layerProperty );
mChildren.append( layer );
}

0 comments on commit 9464698

Please sign in to comment.
You can’t perform that action at this time.