- added a few protections against RuntimeError exceptions that randomly popup due of wrapped C++ objects being deleted

This commit is contained in:
Marius Stanciu
2021-11-23 12:26:11 +02:00
committed by Marius
parent 755da7c972
commit a54de942a3
3 changed files with 15 additions and 2 deletions

View File

@@ -8443,7 +8443,10 @@ class App(QtCore.QObject):
if self.ui.notebook.tabText(self.ui.notebook.currentIndex()) == _("Properties"):
active_obj = self.collection.get_active()
if active_obj:
active_obj.build_ui()
try:
active_obj.build_ui()
except Exception:
self.setup_default_properties_tab()
else:
self.setup_default_properties_tab()