X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetEditor.cpp;h=54e455ceb226e472de415d7b9664443854e1feef;hb=fb54db5e1466b16dfc029c4a7364a67a9a6a8c24;hp=4857863b5ea31d1f905187ffcb0a67fad13d6ac7;hpb=150ef68b3ea2df3c2130a4f5ea8128ddb5c76048;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetEditor.cpp b/src/PartSet/PartSet_WidgetEditor.cpp index 4857863b5..54e455ceb 100644 --- a/src/PartSet/PartSet_WidgetEditor.cpp +++ b/src/PartSet/PartSet_WidgetEditor.cpp @@ -14,16 +14,15 @@ #include PartSet_WidgetEditor::PartSet_WidgetEditor(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop, - const Config_WidgetAPI* theData, - const std::string& theParentId) - : ModuleBase_WidgetEditor(theParent, theData, theParentId), myWorkshop(theWorkshop) + const Config_WidgetAPI* theData) + : ModuleBase_WidgetEditor(theParent, theData), myWorkshop(theWorkshop) { } bool PartSet_WidgetEditor::focusTo() { PartSet_Module* aModule = dynamic_cast(myWorkshop->module()); - if (aModule->isMouseOverWindow()) + if (aModule->isMouseOverWindow() && !isEditingMode()) return ModuleBase_WidgetEditor::focusTo(); else { return ModuleBase_WidgetDoubleValue::focusTo();