Fix macos crashes when unhandled exceptions reaches qt

This commit is contained in:
Benjamin Nauck
2024-10-02 22:12:03 -05:00
committed by Chris Hennes
parent 484a262c31
commit 11bc6c6b69
+8
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");
}
}
}