From: mpv Date: Thu, 28 May 2015 13:30:05 +0000 (+0300) Subject: Fix of unstable behavior of results creation events on Linux X-Git-Tag: V_1.2.0~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=49db0a60d0c885b546c899d184b5b0a8852af54f;p=modules%2Fshaper.git Fix of unstable behavior of results creation events on Linux --- diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index 0a51eaba6..e06f9a2ad 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -40,6 +40,7 @@ Model_ResultBody::Model_ResultBody() { + myIsDisabled = false; // by default it is not initialized and false to be after created setIsConcealed(false); } diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index e614fd89c..d2f3104da 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -44,6 +44,7 @@ std::shared_ptr Model_ResultConstruction::shape() Model_ResultConstruction::Model_ResultConstruction() { + myIsDisabled = true; // by default it is not initialized and false to be after created myIsInHistory = true; myFacesUpToDate = false; setIsConcealed(false); diff --git a/src/Model/Model_ResultGroup.cpp b/src/Model/Model_ResultGroup.cpp index 39809bade..87210b5c5 100644 --- a/src/Model/Model_ResultGroup.cpp +++ b/src/Model/Model_ResultGroup.cpp @@ -14,6 +14,7 @@ Model_ResultGroup::Model_ResultGroup(std::shared_ptr theOwnerData) { + myIsDisabled = true; // by default it is not initialized and false to be after created setIsConcealed(false); myOwnerData = theOwnerData; } diff --git a/src/Model/Model_ResultParameter.cpp b/src/Model/Model_ResultParameter.cpp index 0e1aee7fe..5c0f56a66 100644 --- a/src/Model/Model_ResultParameter.cpp +++ b/src/Model/Model_ResultParameter.cpp @@ -21,5 +21,6 @@ void Model_ResultParameter::initAttributes() Model_ResultParameter::Model_ResultParameter() { + myIsDisabled = true; // by default it is not initialized and false to be after created setIsConcealed(false); } diff --git a/src/Model/Model_ResultPart.cpp b/src/Model/Model_ResultPart.cpp index a54ca6709..cd60eb2a6 100644 --- a/src/Model/Model_ResultPart.cpp +++ b/src/Model/Model_ResultPart.cpp @@ -21,6 +21,7 @@ std::shared_ptr Model_ResultPart::owner() Model_ResultPart::Model_ResultPart() { + myIsDisabled = true; // by default it is not initialized and false to be after created setIsConcealed(false); } diff --git a/src/ModelAPI/ModelAPI_Result.h b/src/ModelAPI/ModelAPI_Result.h index dedee45d7..9889e4884 100644 --- a/src/ModelAPI/ModelAPI_Result.h +++ b/src/ModelAPI/ModelAPI_Result.h @@ -21,6 +21,7 @@ class ModelAPI_Feature; class ModelAPI_Result : public ModelAPI_Object { bool myIsConcealed; ///< the result is concealed from the data tree (referenced by other objects) + protected: bool myIsDisabled; ///< the result is disabled: removed for the user, but keeps the general info public: