Skip to content
Permalink
Browse files

vector layer properties now checks if config widget factory supports …

…layer

previously the factory would always be used, even if it did not
support the active layer

fixes #20240
  • Loading branch information
ricardogsilva authored and nyalldawson committed Oct 29, 2018
1 parent 2f86f22 commit a9f7f3542e2424b0b8cbd500c077ea648d6f24f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsvectorlayerproperties.cpp
@@ -463,7 +463,7 @@ void QgsVectorLayerProperties::toggleEditing()

void QgsVectorLayerProperties::addPropertiesPageFactory( QgsMapLayerConfigWidgetFactory *factory )
{
if ( !factory->supportLayerPropertiesDialog() )
if ( !factory->supportsLayer( mLayer ) || !factory->supportLayerPropertiesDialog() )
{
return;
}

0 comments on commit a9f7f35

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