Skip to content
Permalink
Browse files

Activate geometry checks when changing layer properties

No longer requires a reload of the project

Fix #20218
https://issues.qgis.org/issues/20218
  • Loading branch information
m-kuhn committed Nov 2, 2018
1 parent 7421247 commit fe6594e3e93750a68f94c3765afaf2b672c81954
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsgeometryvalidationservice.cpp
@@ -88,6 +88,11 @@ void QgsGeometryValidationService::onLayersAdded( const QList<QgsMapLayer *> &la
enableLayerChecks( vectorLayer );
} );

connect( vectorLayer->geometryOptions(), &QgsGeometryOptions::geometryChecksChanged, this, [this, vectorLayer]()
{
enableLayerChecks( vectorLayer );
} );

connect( vectorLayer, &QgsVectorLayer::destroyed, this, [vectorLayer, this]()
{
cleanupLayerChecks( vectorLayer );

0 comments on commit fe6594e

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