From: nds Date: Wed, 4 May 2016 13:36:22 +0000 (+0300) Subject: Issue #1441 extrusion and revolution - activate field for selection of axis X-Git-Tag: V_2.3.0~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=998b8fd42f28159c0fdc31802331206b1a399765;p=modules%2Fshaper.git Issue #1441 extrusion and revolution - activate field for selection of axis --- diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 76c2e720e..d42cc1ee0 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -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& aWidgets = aPanel->modelWidgets(); + XGUI_PropertyPanel* aPropertyPanel = aWorkshop->propertyPanel(); + const QList& 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