]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_WidgetSketchLabel.cpp
Salome HOME
Issue #3202: Fix behavior of Delete operation
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.cpp
index cd11fabee5f4b58c7a01f1fec4e5eee027f01ebf..242773ea366dc27977e591f58d7e1a1237903abc 100644 (file)
@@ -867,6 +867,9 @@ void PartSet_WidgetSketchLabel::onShowDOF()
     static const Events_ID anEvent = Events_Loop::eventByName(EVENT_GET_DOF_OBJECTS);
     ModelAPI_EventCreator::get()->sendUpdated(aCompFeature, anEvent);
     Events_Loop::loop()->flush(anEvent);
+    QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
+    if (aViewPort)
+      aViewPort->setFocus();
   }
 }