]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Union of validator and filter functionalities.
authornds <natalia.donis@opencascade.com>
Fri, 20 Mar 2015 13:31:19 +0000 (16:31 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 20 Mar 2015 13:31:19 +0000 (16:31 +0300)
Update object by selection change

src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp

index 2c970d1740de74d2ffb4fbe1bb5f4813b1d5354c..9708a6ccdade9d7fd5a44d6020a909fedad023cb 100644 (file)
@@ -218,6 +218,14 @@ void ModuleBase_WidgetShapeSelector::onSelectionChanged()
     Handle(SelectMgr_EntityOwner) anOwner = aSelected.first().owner();
     if (isValid(anOwner)) {
       setSelection(anOwner);
+      // the updateObject method should be called to flush the updated sigal. The workshop listens it,
+      // calls validators for the feature and, as a result, updates the Apply button state.
+      updateObject(myFeature);
+      //if (theObj) {
+        //  raisePanel();
+      //} 
+      //updateSelectionName();
+      //emit valuesChanged();
       emit focusOutWidget(this);
     }
   }