]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1343 Improvement of Extrusion and Revolution operations: multi-selector contro...
authornds <nds@opencascade.com>
Tue, 22 Mar 2016 11:47:04 +0000 (14:47 +0300)
committerdbv <dbv@opencascade.com>
Wed, 6 Apr 2016 10:22:05 +0000 (13:22 +0300)
selection.

src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp

index fb1238c3ab69e411a3f4d0e17fdf89f5cd14df1c..2c34e5c2a7d10bcc4f5cd17f0635e1d6551a308f 100755 (executable)
@@ -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)