Skip to content
Permalink
Browse files

Merge pull request #9006 from alexbruy/fix-embedded-layers

don't allow to change style of the embedded layers from the Layer Styling panel (fix #16339)
  • Loading branch information
alexbruy committed Jan 28, 2019
2 parents e4be09a + e483642 commit e97649ae1f3e7da6eaa517c76ee212510aa120e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgslayerstylingwidget.cpp
@@ -137,7 +137,7 @@ void QgsLayerStylingWidget::setLayer( QgsMapLayer *layer )
disconnect( mCurrentLayer, &QgsMapLayer::styleChanged, this, &QgsLayerStylingWidget::updateCurrentWidgetLayer );
}

if ( !layer || !layer->isSpatial() )
if ( !layer || !layer->isSpatial() || !QgsProject::instance()->layerIsEmbedded( layer->id() ).isEmpty() )
{
mLayerCombo->setLayer( nullptr );
mStackedWidget->setCurrentIndex( mNotSupportedPage );

0 comments on commit e97649a

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