diff --git a/src/calibre/gui2/library.py b/src/calibre/gui2/library.py index 8a737fd608..2f426e3766 100644 --- a/src/calibre/gui2/library.py +++ b/src/calibre/gui2/library.py @@ -162,7 +162,8 @@ class BooksModel(QAbstractTableModel): def refresh_ids(self, ids, current_row=-1): rows = self.db.refresh_ids(ids) - self.refresh_rows(rows, current_row=current_row) + if rows: + self.refresh_rows(rows, current_row=current_row) def refresh_rows(self, rows, current_row=-1): for row in rows: