mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug preventing editing collections on a sony
This commit is contained in:
parent
8a71ef735f
commit
eaf68c0786
@ -919,8 +919,8 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
flags = QAbstractTableModel.flags(self, index)
|
flags = QAbstractTableModel.flags(self, index)
|
||||||
if index.isValid() and self.editable:
|
if index.isValid() and self.editable:
|
||||||
cname = self.column_map[index.column()]
|
cname = self.column_map[index.column()]
|
||||||
if cname in ('title', 'authors') or (cname == 'collection' and \
|
if cname in ('title', 'authors') or \
|
||||||
self.db.supports_collections()):
|
(cname == 'collections' and self.db.supports_collections()):
|
||||||
flags |= Qt.ItemIsEditable
|
flags |= Qt.ItemIsEditable
|
||||||
return flags
|
return flags
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user