From: spo Date: Fri, 4 Dec 2015 09:51:46 +0000 (+0300) Subject: Hide groups in the history for importing XAO X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac3194e5b6e1d1f7bba34ce0811b3a8f45e8ea26;p=modules%2Fshaper.git Hide groups in the history for importing XAO --- diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp index cecca95cf..73a35fd22 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp @@ -191,7 +191,10 @@ void ExchangePlugin_ImportFeature::importXAO(const std::string& theFileName) aRefListOfGroups->append(aGroupFeature); - document()->setCurrentFeature(aGroupFeature, true); + // hide the group in the history + document()->setCurrentFeature(aGroupFeature, false); + // groups features is internal part of the import + aGroupFeature->setInHistory(aGroupFeature, false); } } catch (XAO::XAO_Exception& e) {