From ac3194e5b6e1d1f7bba34ce0811b3a8f45e8ea26 Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 4 Dec 2015 12:51:46 +0300 Subject: [PATCH] Hide groups in the history for importing XAO --- src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.39.2