From d3b68a262fc8230c40066c6a399d5d6272bcfcf0 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 12 Apr 2016 15:49:05 +0300 Subject: [PATCH] Make the feature with "preview" button updates the property panel "Apply" button correctly. --- src/Model/Model_Update.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()) { -- 2.39.2