Skip to content

Commit fe6594e

Browse files
committedNov 2, 2018
Activate geometry checks when changing layer properties
No longer requires a reload of the project Fix #20218 https://issues.qgis.org/issues/20218
1 parent 7421247 commit fe6594e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgsgeometryvalidationservice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ void QgsGeometryValidationService::onLayersAdded( const QList<QgsMapLayer *> &la
8888
enableLayerChecks( vectorLayer );
8989
} );
9090

91+
connect( vectorLayer->geometryOptions(), &QgsGeometryOptions::geometryChecksChanged, this, [this, vectorLayer]()
92+
{
93+
enableLayerChecks( vectorLayer );
94+
} );
95+
9196
connect( vectorLayer, &QgsVectorLayer::destroyed, this, [vectorLayer, this]()
9297
{
9398
cleanupLayerChecks( vectorLayer );

0 commit comments

Comments
 (0)
Please sign in to comment.