Skip to content
Permalink
Browse files

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 e48364292d0afa87a555a6e7cac65ea0e0e930ae
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 e483642

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