diff --git a/src/calibre/gui2/icon_theme.py b/src/calibre/gui2/icon_theme.py index 7c0ba8271d..b3176e6a7a 100644 --- a/src/calibre/gui2/icon_theme.py +++ b/src/calibre/gui2/icon_theme.py @@ -741,7 +741,7 @@ class ChooseTheme(Dialog): Dialog.accept(self) def accept(self): - if self.theme_list.currentIndex() < 0: + if self.theme_list.currentRow() < 0: return error_dialog(self, _('No theme selected'), _( 'You must first select an icon theme'), show=True) theme = self.theme_list.currentItem().data(Qt.UserRole)