From: vsv Date: Fri, 23 Aug 2019 08:50:57 +0000 (+0300) Subject: Issue #2965: Update Apply button on change shapes type in field edit X-Git-Tag: VEDF2019Lot4~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0ec90b1888819c2db81ddfb98a3d8ea8a90684d;p=modules%2Fshaper.git Issue #2965: Update Apply button on change shapes type in field edit --- 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();