From 9403b800b2a3e83c34d7d843b9bdf7ae562f4f74 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Wed, 31 Jan 2018 16:51:11 +0100 Subject: [PATCH] In exportXAO, show a warning instead of setError if some group or field can't be exported. --- src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } } -- 2.39.2