Tweak comment

Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
This commit is contained in:
RumovZ 2021-09-28 11:48:35 +02:00 committed by GitHub
parent 6be0de0310
commit 7c376e0172

View file

@ -80,7 +80,7 @@ class DataModel(QAbstractTableModel):
self, index: QModelIndex, item: ItemId, old_row: Optional[CellRow]
) -> CellRow:
"""Fetch a row from the backend, add it to the cache and return it.
Thereby, handle callbacks if the row is being deleted or restored.
Then fire callbacks if the row is being deleted or restored.
"""
new_row = self._fetch_row_from_backend(item)
# row state has changed if existence of cached and fetched counterparts differ