From df24ad0008a94e68bd76133de853af74e45d2f04 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 16 Dec 2023 17:16:25 +0100 Subject: [PATCH] Fix crash when using shortcut to set page type QListWidget has no rowCount() method, it has count() instead. --- comictaggerlib/pagelisteditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index b4afdf9..43315ff 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -124,7 +124,7 @@ class PageListEditor(QtWidgets.QWidget): self.addAction(action_item) def select_page_type_item(self, idx: int) -> None: - if self.cbPageType.isEnabled() and self.listWidget.rowCount() > 0: + if self.cbPageType.isEnabled() and self.listWidget.count() > 0: self.cbPageType.setCurrentIndex(idx) self.change_page_type(idx)