]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix bug on the display of optional box.
authorClarisse Genrault <clarisse.genrault@cea.fr>
Wed, 15 Mar 2017 10:26:09 +0000 (11:26 +0100)
committerClarisse Genrault <clarisse.genrault@cea.fr>
Wed, 15 Mar 2017 10:26:09 +0000 (11:26 +0100)
src/ModuleBase/ModuleBase_WidgetOptionalBox.cpp

index 73a80de18221689321085d338c922d40927d3ca1..b6d32cda6b4cdc396958fcdfba2e46f495aca1b9 100755 (executable)
@@ -222,16 +222,13 @@ void ModuleBase_WidgetOptionalBox::updateControlsVisibility()
 {
   if (myOptionType == GroupBox) {
     bool aChecked = myGroupBox->isChecked();
-    if (aChecked)
-      ModuleBase_Tools::zeroMargins(myGroupBoxLayout);
-    else
-      ModuleBase_Tools::adjustMargins(myGroupBoxLayout);
+    ModuleBase_Tools::adjustMargins(myGroupBoxLayout);
 
     int aNbSubControls = myGroupBoxLayout->count();
     for (int i = 0; i < aNbSubControls; i++) {
       QWidget* aWidget = myGroupBoxLayout->itemAt(i)->widget();
       if (aWidget)
-        aWidget->setVisible(aChecked);
+        aWidget->setEnabled(aChecked);
     }
   }
   else {