From: vsv Date: Thu, 9 Apr 2020 09:44:42 +0000 (+0300) Subject: Add comment to a code X-Git-Tag: V9_5_0b1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dff2e776460fc98e6b234181479ec680a91e9623;p=modules%2Fshaper.git Add comment to a code --- diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 242773ea3..ac02f684c 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -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();