- 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

@@ -1017,9 +1017,11 @@ class ObjectCollection(QtCore.QAbstractItemModel):
try:
a_idx.build_ui()
except RuntimeError:
a_idx.set_ui(a_idx.ui_type(app=self.app))
a_idx.build_ui()
except Exception as e:
self.app.inform.emit('[ERROR] %s: %s' % (_("Cause of error"), str(e)))
raise
def get_list(self):
"""