- the Proprties tab UI is now populated with the object UI only when the Properties tab is selected and not on object selection like it was done previously

This commit is contained in:
Marius Stanciu
2021-10-07 16:53:24 +03:00
parent e2f511be71
commit 56451688d5
3 changed files with 29 additions and 33 deletions

View File

@@ -995,11 +995,11 @@ class ObjectCollection(QtCore.QAbstractItemModel):
self.app.setup_default_properties_tab()
return
if obj:
try:
obj.build_ui()
except RuntimeError:
pass
# if obj:
# try:
# obj.build_ui()
# except RuntimeError:
# pass
# don't emit the signal if there more than one objects selected
# this signal is intended to be emitted for a single selection in the collection view
@@ -1016,12 +1016,12 @@ class ObjectCollection(QtCore.QAbstractItemModel):
a_idx = index.internalPointer().obj
if a_idx is None:
return
else:
try:
a_idx.build_ui()
except Exception as e:
self.app.inform.emit('[ERROR] %s: %s' % (_("Cause of error"), str(e)))
raise
try:
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):
"""