- some issues fixed that were left behind rom porting to PyQt6

- trying to solve differently RuntimeError exceptions that randomly popup due of wrapped C++ objects being deleted by attempting to create a new UI for the objects
This commit is contained in:
Marius Stanciu
2021-11-30 00:00:18 +02:00
committed by Marius
parent 2125071875
commit 20587eaec8
4 changed files with 31 additions and 22 deletions

View File

@@ -8445,6 +8445,9 @@ class App(QtCore.QObject):
if active_obj:
try:
active_obj.build_ui()
except RuntimeError:
active_obj.set_ui(active_obj.ui_type(app=self))
active_obj.build_ui()
except Exception:
self.setup_default_properties_tab()
else: