Skip to content
Permalink
Browse files

Remove initial : from the sublayers name in the browser tree

  • Loading branch information
elpaso committed Aug 8, 2017
1 parent 9430a90 commit e14e6482d705a894bb52f186d71bae442f01d303
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/gdal/qgsgdaldataitems.cpp
@@ -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

0 comments on commit e14e648

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