From 417fa068b74c1b73199601daea18153b964b73f9 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 3 Oct 2018 13:57:27 +0200 Subject: [PATCH] Only insert rows if errors is not empty --- src/app/qgsgeometryvalidationmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/qgsgeometryvalidationmodel.cpp b/src/app/qgsgeometryvalidationmodel.cpp index 58298089272..ebbed6fd7e0 100644 --- a/src/app/qgsgeometryvalidationmodel.cpp +++ b/src/app/qgsgeometryvalidationmodel.cpp @@ -295,6 +295,9 @@ void QgsGeometryValidationModel::onGeometryCheckStarted( QgsVectorLayer *layer, void QgsGeometryValidationModel::onTopologyChecksUpdated( QgsVectorLayer *layer, const QList > &errors ) { + if ( errors.empty() ) + return; + auto &topologyLayerErrors = mTopologyErrorStorage[layer]; if ( layer == currentLayer() )