From: nds Date: Fri, 20 Mar 2015 13:31:19 +0000 (+0300) Subject: Union of validator and filter functionalities. X-Git-Tag: V_1.1.0~96 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=68420e410a9846ec7dcb2f4645030455bc374288;p=modules%2Fshaper.git Union of validator and filter functionalities. Update object by selection change --- diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index 2c970d174..9708a6ccd 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -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); } }