Skip to content

Commit

Permalink
Merge pull request #9006 from alexbruy/fix-embedded-layers
Browse files Browse the repository at this point in the history
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 e97649a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgslayerstylingwidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit e97649a

Please sign in to comment.