]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide activation of sketch label on edit of sketch
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 5 Dec 2014 16:34:36 +0000 (19:34 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 5 Dec 2014 16:34:36 +0000 (19:34 +0300)
src/PartSet/PartSet_Module.cpp

index f4c7826546742b23c4d945a7d307b1e932cbf9b7..bb9d5f7f3d1a03584453a3a61b1d248b1bfa57f1 100644 (file)
@@ -251,6 +251,13 @@ void PartSet_Module::onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>& 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();