mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
use explicit condition
This commit is contained in:
parent
3d7e02a550
commit
3a22c1dd15
1 changed files with 1 additions and 2 deletions
|
|
@ -27,9 +27,8 @@ class InstancesModel(QtGui.QStandardItemModel):
|
|||
|
||||
def set_report(self, report_item):
|
||||
root_item = self.invisibleRootItem()
|
||||
if root_item.rowCount():
|
||||
if root_item.rowCount() > 0:
|
||||
root_item.removeRows(0, root_item.rowCount())
|
||||
|
||||
self._items_by_id.clear()
|
||||
self._plugin_items_by_id.clear()
|
||||
if not report_item:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue