From: vsv Date: Thu, 19 Dec 2019 12:38:16 +0000 (+0300) Subject: Issue #3130: Clear error state after correct editing of a coordinate X-Git-Tag: V9_5_0a1~75 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0647fd890e3a7a00c4047db4a3b9ae9ec57a7c4;p=modules%2Fshaper.git Issue #3130: Clear error state after correct editing of a coordinate --- diff --git a/src/ModuleBase/ModuleBase_WidgetPointInput.cpp b/src/ModuleBase/ModuleBase_WidgetPointInput.cpp index ca7c3c055..ada7b4eb0 100644 --- a/src/ModuleBase/ModuleBase_WidgetPointInput.cpp +++ b/src/ModuleBase/ModuleBase_WidgetPointInput.cpp @@ -151,6 +151,7 @@ bool ModuleBase_WidgetPointInput::storeValueCustom() } aAttr->setText(aXText, aYText, aZText); } else { + aAttr->setText("", "", ""); aAttr->setValue(myXSpin->value(), myYSpin->value(), myZSpin->value()); } } else { @@ -196,6 +197,7 @@ bool ModuleBase_WidgetPointInput::restoreValueCustom() myYSpin->setValue(myDefaultValue[1]); myZSpin->setValue(myDefaultValue[2]); } + setValueState(Stored); return true; } return false; diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 3860a9ff1..a3e0bf2d0 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -478,7 +478,7 @@ bool XGUI_PropertyPanel::focusNextPrevChild(bool theIsNext) ModuleBase_ModelWidget* aNewFocusMWidget = ModuleBase_ModelWidget::findModelWidget(this, aNewFocusWidget); if (aNewFocusMWidget) { - if (aFocusMWidget) { + if (aFocusMWidget && (aFocusMWidget != aNewFocusMWidget)) { aFocusMWidget->setHighlighted(false); } aNewFocusMWidget->emitFocusInWidget();