From fa81bfe4c8c074b59b4391043a8568f12d2b4976 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 May 2014 21:59:07 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/spell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))