Skip to content
Permalink
Browse files

[browser] Unify layer name in properties for raster/vector layers

  • Loading branch information
nyalldawson committed Oct 31, 2018
1 parent 17447e4 commit 620643e2543b76deb5bc209d765f9356dfbe6534
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsbrowserdockwidget_p.cpp
@@ -183,12 +183,12 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
{
QgsDebugMsg( QStringLiteral( "creating raster layer" ) );
// should copy code from addLayer() to split uri ?
mLayer = qgis::make_unique< QgsRasterLayer >( layerItem->uri(), layerItem->uri(), layerItem->providerKey() );
mLayer = qgis::make_unique< QgsRasterLayer >( layerItem->uri(), layerItem->name(), layerItem->providerKey() );
}
else if ( type == QgsMapLayer::MeshLayer )
{
QgsDebugMsg( QStringLiteral( "creating mesh layer" ) );
mLayer = qgis::make_unique < QgsMeshLayer >( layerItem->uri(), layerItem->uri(), layerItem->providerKey() );
mLayer = qgis::make_unique < QgsMeshLayer >( layerItem->uri(), layerItem->name(), layerItem->providerKey() );
}
else if ( type == QgsMapLayer::VectorLayer )
{

0 comments on commit 620643e

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