mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
f2750c00cb
commit
39e28b3fdb
@ -741,7 +741,7 @@ class ChooseTheme(Dialog):
|
|||||||
Dialog.accept(self)
|
Dialog.accept(self)
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
if self.theme_list.currentIndex() < 0:
|
if self.theme_list.currentRow() < 0:
|
||||||
return error_dialog(self, _('No theme selected'), _(
|
return error_dialog(self, _('No theme selected'), _(
|
||||||
'You must first select an icon theme'), show=True)
|
'You must first select an icon theme'), show=True)
|
||||||
theme = self.theme_list.currentItem().data(Qt.UserRole)
|
theme = self.theme_list.currentItem().data(Qt.UserRole)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user