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)

(cherry picked from commit e483642)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 29, 2019
1 parent 66c07d7 commit 149d68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgslayerstylingwidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 149d68d

Please sign in to comment.