From: nds Date: Fri, 30 Oct 2015 07:31:18 +0000 (+0300) Subject: Activating of another widget by hands should be performed only after store the curren... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=363a5b8240998d92b4e809149b50c211f021339c;p=modules%2Fshaper.git Activating of another widget by hands should be performed only after store the current widget value ot the model only when the operation sate is Modified in Property Panel. --- diff --git a/src/ModuleBase/ModuleBase_ModelWidget.cpp b/src/ModuleBase/ModuleBase_ModelWidget.cpp index 7f7e1fa14..db4a41f66 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.cpp +++ b/src/ModuleBase/ModuleBase_ModelWidget.cpp @@ -132,6 +132,8 @@ void ModuleBase_ModelWidget::activate() void ModuleBase_ModelWidget::deactivate() { myIsValueStateBlocked = false; + if (myState == ModifiedInPP) + storeValue(); myState = Stored; }