From 034a25a81345f174d357343ba1c5528d2e63c767 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 7 Sep 2023 14:44:30 +0100 Subject: [PATCH] Fix auto-identify crash --- comictaggerlib/seriesselectionwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 8380e73..6bbf94f 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -349,7 +349,7 @@ class SeriesSelectionWindow(QtWidgets.QDialog): self.imageWidget.update_content() def select_by_id(self) -> None: - for r in range(self.twList.rows()): + for r in range(self.twList.rowCount()): if self.series_id == self.twList.item(r, 0).data(QtCore.Qt.ItemDataRole.UserRole): self.twList.selectRow(r) break