Fix macos crashes when unhandled exceptions reaches qt
This commit is contained in:
committed by
Chris Hennes
parent
d626ed9690
commit
dbeeb1534a
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user