Skip to content

Commit

Permalink
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
1 parent bc4efc9 commit e483642
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 e483642

Please sign in to comment.