X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSet%2FPartSet_WidgetPoint2dDistance.cpp;h=427efc273fe8dd552c6718d67ffc9d69317a31ed;hb=09dabb6acd9664f589a0bd9415d804d7a37ab801;hp=f3991587b375a6180473b803b6d5efe74d197e1b;hpb=def1d660542e39cc9ed4ee27ab8cce8d231be01a;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp index f3991587b..427efc273 100644 --- a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp +++ b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp @@ -58,6 +58,7 @@ bool PartSet_WidgetPoint2dDistance::resetCustom() // if the restored value should be hidden, aDone = true to set // reset state for the widget in the parent aDone = restoreCurentValue(); + emit objectUpdated(); } else aDone = ModuleBase_WidgetDoubleValue::resetCustom(); @@ -127,7 +128,7 @@ void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn setPoint(feature(), aPnt); // if the validator of the control returns false, focus should not be switched - if (getError().isEmpty()) + if (getError(false).isEmpty()) emit focusOutWidget(this); }