Skip to content
Permalink
Browse files

Do not include |layerid=X if the layer is not a collection (#4309)

  • Loading branch information
wonder-sk committed Oct 3, 2011
1 parent 5677103 commit 3350c9c06e7dcc6d7c7e50e945438dc4fa39e582
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -2467,7 +2467,9 @@ QGISEXTERN QgsDataItem * dataItem( QString thePath, QgsDataItem* parentItem )
path += "/" + name;
}

QString layerUri = thePath + "|layerid=" + QString::number( i );
QString layerUri = thePath;
if ( collection )
layerUri += "|layerid=" + QString::number( i );
QgsDebugMsg( "OGR layer uri : " + layerUri );

QgsOgrLayerItem * item = new QgsOgrLayerItem( collection ? collection : parentItem, name, path, layerUri, layerType );

0 comments on commit 3350c9c

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