Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove initial : from the sublayers name in the browser tree
  • Loading branch information
elpaso committed Aug 9, 2017
1 parent 9430a90 commit e14e648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/gdal/qgsgdaldataitems.cpp
Expand Up @@ -89,8 +89,8 @@ QVector<QgsDataItem *> QgsGdalLayerItem::createChildren()
name = name.mid( name.indexOf( mPath ) + mPath.length() + 1 );
else
{
// remove driver name and file name
name.remove( name.split( ':' )[0] );
// remove driver name and file name and initial ':'
name.remove( name.split( ':' )[0] + ':' );
name.remove( mPath );
}
// remove any : or " left over
Expand Down

0 comments on commit e14e648

Please sign in to comment.