From: nds Date: Mon, 30 May 2016 07:52:44 +0000 (+0300) Subject: Issue #1505 Bug in parameters management (with parts not loaded) X-Git-Tag: V_2.3.1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5446f2f59af5cb087347b8b83ef830e2d69128dd;p=modules%2Fshaper.git 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. --- 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); }