diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index b2fb073730..31f3dac955 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -145,7 +145,7 @@ class UserWordList(QListWidget): words = [] for item in (self.item(i) for i in xrange(self.count())): if item.isSelected(): - words.append(item.data(Qt.UserRole).toPyObject()[0]) + words.append(item.data(Qt.UserRole)[0]) if words: QApplication.clipboard().setText('\n'.join(words))