mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
user layerName() when adding raster from browser (#5636)
This commit is contained in:
parent
74110ae440
commit
26c083b841
@ -307,7 +307,7 @@ void QgsBrowserDockWidget::addLayer( QgsLayerItem *layerItem )
|
|||||||
}
|
}
|
||||||
if ( type == QgsMapLayer::RasterLayer )
|
if ( type == QgsMapLayer::RasterLayer )
|
||||||
{
|
{
|
||||||
QgisApp::instance()->addRasterLayer( uri, layerItem->name(), providerKey );
|
QgisApp::instance()->addRasterLayer( uri, layerItem->layerName(), providerKey );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user