]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Add comment to a code
authorvsv <vsv@opencascade.com>
Thu, 9 Apr 2020 09:44:42 +0000 (12:44 +0300)
committervsv <vsv@opencascade.com>
Thu, 9 Apr 2020 09:44:42 +0000 (12:44 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp

index 242773ea366dc27977e591f58d7e1a1237903abc..ac02f684cd3cb96f67a2332a9c48cc274e8a2964 100644 (file)
@@ -867,6 +867,8 @@ 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);
+
+    // Transfer focus to the current viewport for correct processing of a key event
     QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
     if (aViewPort)
       aViewPort->setFocus();