From b6d7a46e6ec1ec6cfdf10081ed4178516ba49948 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 26 Oct 2018 10:17:35 -0700 Subject: [PATCH] Signal after both structures are updated --- src/MissionManager/QGCMapPolygon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MissionManager/QGCMapPolygon.cc b/src/MissionManager/QGCMapPolygon.cc index ba3619a38..26c298ae4 100644 --- a/src/MissionManager/QGCMapPolygon.cc +++ b/src/MissionManager/QGCMapPolygon.cc @@ -92,11 +92,11 @@ void QGCMapPolygon::clear(void) void QGCMapPolygon::adjustVertex(int vertexIndex, const QGeoCoordinate coordinate) { _polygonPath[vertexIndex] = QVariant::fromValue(coordinate); + _polygonModel.value(vertexIndex)->setCoordinate(coordinate); if (!_centerDrag) { // When dragging center we don't signal path changed until add vertices are updated emit pathChanged(); } - _polygonModel.value(vertexIndex)->setCoordinate(coordinate); setDirty(true); } -- 2.22.0