Salome HOME
Issue #3236: Add buttons for shape type choice
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchCreator.cpp
index de888dc755b59345e113b6dda7c47620de5435f8..9d6d90cf2dffd5f60023ca1504a07f0841cf5c26 100644 (file)
@@ -212,6 +212,9 @@ void PartSet_WidgetSketchCreator::setVisibleSelectionControl(const bool theSelec
   XGUI_PropertyPanel* aPanel = aWorkshop->propertyPanel();
   const QList<ModuleBase_ModelWidget*>& aWidgets = aPanel->modelWidgets();
   foreach(ModuleBase_ModelWidget* aWidget, aWidgets) {
+    QString aType(aWidget->metaObject()->className());
+    if (aType == "ModuleBase_WidgetChoice")
+      continue;
     if (theSelectionControl) { // hide other controls
       if (aWidget != this)
         aWidget->setVisible(false);