From 68420e410a9846ec7dcb2f4645030455bc374288 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 20 Mar 2015 16:31:19 +0300 Subject: [PATCH] Union of validator and filter functionalities. Update object by selection change --- src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } } -- 2.39.2