]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2965: Update Apply button on change shapes type in field edit
authorvsv <vsv@opencascade.com>
Fri, 23 Aug 2019 08:50:57 +0000 (11:50 +0300)
committervsv <vsv@opencascade.com>
Fri, 23 Aug 2019 08:50:57 +0000 (11:50 +0300)
src/CollectionPlugin/CollectionPlugin_WidgetField.cpp

index 52a54c022b656b3cf0bc8fd46d414673b00b3121..a2e291ed8a8f5d39e4a8386895e893fd5ffb3dc0 100644 (file)
@@ -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();