From 83ac73c67601fd67d6dfac71897d15300d08fc10 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Jun 2014 08:41:48 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/file_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/file_list.py b/src/calibre/gui2/tweak_book/file_list.py index 44a7612f0d..dc4c47ea59 100644 --- a/src/calibre/gui2/tweak_book/file_list.py +++ b/src/calibre/gui2/tweak_book/file_list.py @@ -574,7 +574,7 @@ class FileList(QTreeWidget): self.reorder_spine.emit(order) def item_double_clicked(self, item, column): - category = unicode(item.data(0, CATEGORY_ROLE).toString()) + category = unicode(item.data(0, CATEGORY_ROLE) or '') if category: self._request_edit(item)