Coverity: Uncaught exception

This commit is contained in:
wmayer
2020-07-19 18:22:16 +02:00
parent f37c728a2c
commit 1a34d3da1f
4 changed files with 42 additions and 7 deletions

View File

@@ -106,7 +106,12 @@ public:
}
~Private() {
vpParent->OnTopWhenSelected.setValue(onTopMode);
try {
vpParent->OnTopWhenSelected.setValue(onTopMode);
}
catch (const Base::Exception& e) {
e.ReportException();
}
}
bool allow(App::Document *doc, App::DocumentObject *obj, const char *subname) {