Skip to content

Commit

Permalink
vector layer properties now checks if config widget factory supports …
Browse files Browse the repository at this point in the history
…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 30, 2018
1 parent 78be68f commit 5c0cc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ void QgsVectorLayerProperties::toggleEditing()

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

0 comments on commit 5c0cc0b

Please sign in to comment.