py3: Fix typo that broke changing icon_theme

Fixes #1848954 [TypeError when trying to change icon theme](https://bugs.launchpad.net/calibre/+bug/1848954)
This commit is contained in:
Kovid Goyal 2019-10-21 07:45:36 +05:30
parent f2750c00cb
commit 39e28b3fdb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)