From 5446f2f59af5cb087347b8b83ef830e2d69128dd Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 30 May 2016 10:52:44 +0300 Subject: [PATCH] Issue #1505 Bug in parameters management (with parts not loaded) Correction for point feature creation: a point in origin stays in the viewer without this modification. --- src/ModuleBase/ModuleBase_ModelWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_ModelWidget.cpp b/src/ModuleBase/ModuleBase_ModelWidget.cpp index 62e16b483..01bb7f33e 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.cpp +++ b/src/ModuleBase/ModuleBase_ModelWidget.cpp @@ -63,10 +63,8 @@ bool ModuleBase_ModelWidget::isInitialized(ObjectPtr theObject) const void ModuleBase_ModelWidget::processValueState() { - myIsValueStateBlocked = false; if (myState == ModifiedInPP || myState == ModifiedInViewer) storeValue(); - myState = Stored; } QString ModuleBase_ModelWidget::getValueStateError() const @@ -193,6 +191,8 @@ void ModuleBase_ModelWidget::activate() void ModuleBase_ModelWidget::deactivate() { + myIsValueStateBlocked = false; + myState = Stored; if (myWidgetValidator) myWidgetValidator->activateFilters(false); } -- 2.39.2