From: mpv Date: Tue, 12 Apr 2016 12:49:05 +0000 (+0300) Subject: Make the feature with "preview" button updates the property panel "Apply" button... X-Git-Tag: V_2.3.0~238 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3b68a262fc8230c40066c6a399d5d6272bcfcf0;p=modules%2Fshaper.git Make the feature with "preview" button updates the property panel "Apply" button correctly. --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index ee33076dc..d49990aa5 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -74,7 +74,8 @@ bool Model_Update::addModified(FeaturePtr theFeature, FeaturePtr theReason) { return false; } - if (!theFeature->isPreviewNeeded() && !myIsFinish) { + // update arguments for "apply button" state change + if ((!theFeature->isPreviewNeeded() && !myIsFinish) || myIsPreviewBlocked) { myProcessOnFinish.insert(theFeature); #ifdef DEB_UPDATE std::cout<<"*** Add process on finish "<name()<validators(); aFactory->validate(theFeature); // need to be validated to update the "Apply" state if not previewed } - return true; + if (!myIsPreviewBlocked) + return true; } if (myModified.find(theFeature) != myModified.end()) { if (theReason.get()) {