mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #1333932 [Edit Book: Double-click on a file category raises a error](https://bugs.launchpad.net/calibre/+bug/1333932)
This commit is contained in:
parent
0ead2c0eb7
commit
70db763744
@ -574,6 +574,8 @@ class FileList(QTreeWidget):
|
|||||||
self.reorder_spine.emit(order)
|
self.reorder_spine.emit(order)
|
||||||
|
|
||||||
def item_double_clicked(self, item, column):
|
def item_double_clicked(self, item, column):
|
||||||
|
category = unicode(item.data(0, CATEGORY_ROLE).toString())
|
||||||
|
if category:
|
||||||
self._request_edit(item)
|
self._request_edit(item)
|
||||||
|
|
||||||
def _request_edit(self, item):
|
def _request_edit(self, item):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user