Skip to content

Commit a9f7f35

Browse files
ricardogsilvanyalldawson
authored andcommitted
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
1 parent 2f86f22 commit a9f7f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsvectorlayerproperties.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ void QgsVectorLayerProperties::toggleEditing()
463463

464464
void QgsVectorLayerProperties::addPropertiesPageFactory( QgsMapLayerConfigWidgetFactory *factory )
465465
{
466-
if ( !factory->supportLayerPropertiesDialog() )
466+
if ( !factory->supportsLayer( mLayer ) || !factory->supportLayerPropertiesDialog() )
467467
{
468468
return;
469469
}

0 commit comments

Comments
 (0)