- 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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user