Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 fe6594e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsgeometryvalidationservice.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit fe6594e

Please sign in to comment.