Skip to content
Permalink
Browse files

don't allow to change style of the embedded layers from the Layer

Styling panel (fix #16339)

(cherry picked from commit e483642)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 29, 2019
1 parent 66c07d7 commit 149d68df5bdde778386feb0f997b508139d74c7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgslayerstylingwidget.cpp
@@ -134,7 +134,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 149d68d

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