From d0ec90b1888819c2db81ddfb98a3d8ea8a90684d Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 23 Aug 2019 11:50:57 +0300 Subject: [PATCH] Issue #2965: Update Apply button on change shapes type in field edit --- src/CollectionPlugin/CollectionPlugin_WidgetField.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index 52a54c022..a2e291ed8 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -975,6 +975,9 @@ void CollectionPlugin_WidgetField::onShapeTypeChanged(int theType) if (aTypeName == aSelList->selectionType()) return; aSelList->setSelectionType(aTypeName); + // Updated event has to be sent here in case if type of shapes + // was changed from Part to any other in order to updater Apply button status + myFeature->data()->sendAttributeUpdated(aSelList.get()); //Clear old selection clearData(); -- 2.39.2