Skip to content

Commit f96513d

Browse files
committedAug 9, 2017
Fixes raster sublayer not apperaring in the browser tree
1 parent 64201f1 commit f96513d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/providers/gdal/qgsgdaldataitems.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ QVector<QgsDataItem *> QgsGdalLayerItem::createChildren()
9999

100100
childItem = new QgsGdalLayerItem( this, name, mSublayers[i], mSublayers[i] );
101101
if ( childItem )
102-
this->addChildItem( childItem );
102+
{
103+
children.append( childItem );
104+
}
103105
}
104106
}
105107

0 commit comments

Comments
 (0)
Please sign in to comment.