]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1441 extrusion and revolution - activate field for selection of axis
authornds <nds@opencascade.com>
Wed, 4 May 2016 13:36:22 +0000 (16:36 +0300)
committernds <nds@opencascade.com>
Wed, 4 May 2016 13:36:46 +0000 (16:36 +0300)
src/PartSet/PartSet_WidgetSketchCreator.cpp

index 76c2e720efeb454bd4ff8e513208817f1e251e65..d42cc1ee07ef721e9e2ee17d4fdf361697ab75f5 100644 (file)
@@ -423,11 +423,18 @@ void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp)
 
     // Update value in attribute selection list
     XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myModule->workshop());
-    XGUI_PropertyPanel* aPanel = aWorkshop->propertyPanel();
-    const QList<ModuleBase_ModelWidget*>& aWidgets = aPanel->modelWidgets();
+    XGUI_PropertyPanel* aPropertyPanel = aWorkshop->propertyPanel();
+    const QList<ModuleBase_ModelWidget*>& aWidgets = aPropertyPanel->modelWidgets();
+    ModuleBase_ModelWidget* aListWidget = 0;
     foreach(ModuleBase_ModelWidget* aWidget, aWidgets) {
-      if (aWidget->attributeID() == myAttributeListID)
-        aWidget->restoreValue();
+      if (aWidget->attributeID() == myAttributeListID) {
+        aListWidget = aWidget;
+        break;
+      }
+    }
+    if (aListWidget) {
+      aListWidget->restoreValue();
+      aPropertyPanel->activateNextWidget(aListWidget);
     }
 
     // Hide sketcher result