Fix macos crashes when unhandled exceptions reaches qt

This commit is contained in:
Benjamin Nauck
2024-09-29 14:21:59 +02:00
committed by Chris Hennes
parent d626ed9690
commit dbeeb1534a

View File

@@ -48,6 +48,8 @@
using namespace Measure;
using namespace MeasureGui;
FC_LOG_LEVEL_INIT("QuickMeasure", true, true)
QuickMeasure::QuickMeasure(QObject* parent)
: QObject(parent)
, measurement {new Measure::Measurement()}
@@ -91,6 +93,12 @@ void QuickMeasure::processSelection()
catch (const Base::Exception& e) {
e.ReportException();
}
catch (const Standard_Failure& e) {
FC_ERR(e);
}
catch (...) {
FC_ERR("Unhandled unknown exception");
}
}
}