]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_Recover.cpp
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Recover.cpp
index bae08ab42a3bece6b30781e23ecec49bdceaf4e6..2e48e7d7e96051717bd32610210d74487bb6b432 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -46,12 +46,12 @@ void FeaturesPlugin_Recover::initAttributes()
   data()->addAttribute(METHOD(), ModelAPI_AttributeString::typeId());
   if (!string(METHOD())->isInitialized()) {
     myClearListOnTypeChange = false;
+    data()->blockSendAttributeUpdated(true, false);
     string(METHOD())->setValue(METHOD_DEFAULT());
+    data()->blockSendAttributeUpdated(false, false);
     myClearListOnTypeChange = true;
   }
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), METHOD());
-  // set default method for recovering
-  string(METHOD())->setValue(METHOD_DEFAULT());
 }
 
 void FeaturesPlugin_Recover::execute()