From: vsv Date: Fri, 5 Dec 2014 16:34:36 +0000 (+0300) Subject: Provide activation of sketch label on edit of sketch X-Git-Tag: V_0.6.0^2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=494cd17054469fea96bf4abb8faf79b7f4d613e3;p=modules%2Fshaper.git Provide activation of sketch label on edit of sketch --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index f4c782654..bb9d5f7f3 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -251,6 +251,13 @@ void PartSet_Module::onPlaneSelected(const std::shared_ptr& thePln) void PartSet_Module::propertyPanelDefined(ModuleBase_Operation* theOperation) { ModuleBase_IPropertyPanel* aPanel = theOperation->propertyPanel(); + if ((theOperation->id().toStdString() == SketchPlugin_Sketch::ID()) && + (theOperation->isEditOperation())) { + // we have to manually activate the sketch label in edit mode + aPanel->activateWidget(aPanel->modelWidgets().first()); + return; + } + // Restart last operation type if ((theOperation->id() == myLastOperationId) && myLastFeature) { ModuleBase_ModelWidget* aWgt = aPanel->activeWidget();