From: nds Date: Tue, 22 Mar 2016 11:47:04 +0000 (+0300) Subject: Issue #1343 Improvement of Extrusion and Revolution operations: multi-selector contro... X-Git-Tag: V_2.3.0~333 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d1912cca980a237f5d5e63b178193caab3f18dc;p=modules%2Fshaper.git Issue #1343 Improvement of Extrusion and Revolution operations: multi-selector control accepts focus after initial extrusion selection. --- diff --git a/src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp b/src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp index fb1238c3a..2c34e5c2a 100755 --- a/src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp +++ b/src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp @@ -19,13 +19,16 @@ PartSet_WidgetMultiSelectorComposite::~PartSet_WidgetMultiSelectorComposite() bool PartSet_WidgetMultiSelectorComposite::focusTo() { - bool aHasSubObjects = hasSubObjects(); + bool aCanHaveFocus = true; + if (hasSubObjects()) { // disable widget controls - if (aHasSubObjects) disableControls(); - - return !aHasSubObjects; + aCanHaveFocus = false; + } + else + aCanHaveFocus = ModuleBase_WidgetMultiSelector::focusTo(); + return aCanHaveFocus; } void PartSet_WidgetMultiSelectorComposite::setEditingMode(bool isEditing)