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

(cherry picked from commit a9f7f35)
  • Loading branch information
ricardogsilva authored and nyalldawson committed Oct 29, 2018
1 parent 78be68f commit 5c0cc0bbb26cf130eb66958cb9a820ff39e5e1fc
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 5c0cc0b

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