Salome HOME
Issue #3230: Optional box should not change focus widget
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetOptionalBox.cpp
index fd2d845fb1b3a5690952a0ae7b4c08274ccb94c5..05ffa887571044eba45a2eb93fa2ac30591a5ef1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -44,9 +44,9 @@ ModuleBase_WidgetOptionalBox::ModuleBase_WidgetOptionalBox(QWidget* theParent,
   myGroupBox(0),
   myGroupBoxLayout(0),
   myCheckGroup(0),
-  myCheckGroupLayout(0),
-  myCheckContent(0),
   myCheckGroupBtn(0),
+  myCheckContent(0),
+  myCheckGroupLayout(0),
   myEnableOnCheck(true)
 {
   myToolTip = theData->widgetTooltip();
@@ -93,8 +93,9 @@ void ModuleBase_WidgetOptionalBox::onPageClicked()
   storeValue();
   updateControlsVisibility();
 
-  if (!isEditingMode())
-    emit focusOutWidget(this);
+  // The widget doesn't accept a focus
+  //if (!isEditingMode())
+  //  emit focusOutWidget(this);
 }
 
 void ModuleBase_WidgetOptionalBox::addPageStretch()