From 39e28b3fdb05fa4ca6e760d014facaa8b59ba68d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Oct 2019 07:45:36 +0530 Subject: [PATCH] py3: Fix typo that broke changing icon_theme Fixes #1848954 [TypeError when trying to change icon theme](https://bugs.launchpad.net/calibre/+bug/1848954) --- src/calibre/gui2/icon_theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)