Skip to content

Commit 149d68d

Browse files
alexbruynyalldawson
authored andcommittedJan 29, 2019
don't allow to change style of the embedded layers from the Layer
Styling panel (fix #16339) (cherry picked from commit e483642)
1 parent 66c07d7 commit 149d68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgslayerstylingwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void QgsLayerStylingWidget::setLayer( QgsMapLayer *layer )
134134
disconnect( mCurrentLayer, &QgsMapLayer::styleChanged, this, &QgsLayerStylingWidget::updateCurrentWidgetLayer );
135135
}
136136

137-
if ( !layer || !layer->isSpatial() )
137+
if ( !layer || !layer->isSpatial() || !QgsProject::instance()->layerIsEmbedded( layer->id() ).isEmpty() )
138138
{
139139
mLayerCombo->setLayer( nullptr );
140140
mStackedWidget->setCurrentIndex( mNotSupportedPage );

0 commit comments

Comments
 (0)
Please sign in to comment.