mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
take rows instead of removing them
This commit is contained in:
parent
6947680cc2
commit
66285949a5
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,8 @@ class TasksQtModel(QtGui.QStandardItemModel):
|
|||
self._has_content = False
|
||||
self._remove_invalid_items()
|
||||
root_item = self.invisibleRootItem()
|
||||
root_item.removeRows(0, root_item.rowCount())
|
||||
while root_item.rowCount() != 0:
|
||||
root_item.takeRow(0)
|
||||
|
||||
def refresh(self):
|
||||
"""Refresh tasks for last project and folder."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue