From: Christophe Bourcier Date: Wed, 31 Jan 2018 15:51:11 +0000 (+0100) Subject: In exportXAO, show a warning instead of setError if some group or field can't be... X-Git-Tag: V_3.0.0~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9403b800b2a3e83c34d7d843b9bdf7ae562f4f74;p=modules%2Fshaper.git In exportXAO, show a warning instead of setError if some group or field can't be exported. --- diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 02b31988b..407887dbc 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -54,6 +54,8 @@ #include #include +#include + #include #include #include @@ -301,7 +303,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) msg += e.what(); msg += "\n"; msg += "=> skipping this group from XAO export."; - setError(msg); + Events_InfoMessage("ExportFeature", msg, this).send(); aXao.removeGroup(aXaoGroup); } } @@ -396,7 +398,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) msg += e.what(); msg += "\n"; msg += "=> skipping this field from XAO export."; - setError(msg); + Events_InfoMessage("ExportFeature", msg, this).send(); aXao.removeField(aXaoField); } }