Fix bug preventing editing collections on a sony

This commit is contained in:
Charles Haley 2010-06-19 14:39:02 +01:00
parent 8a71ef735f
commit eaf68c0786

View File

@ -919,8 +919,8 @@ class DeviceBooksModel(BooksModel): # {{{
flags = QAbstractTableModel.flags(self, index)
if index.isValid() and self.editable:
cname = self.column_map[index.column()]
if cname in ('title', 'authors') or (cname == 'collection' and \
self.db.supports_collections()):
if cname in ('title', 'authors') or \
(cname == 'collections' and self.db.supports_collections()):
flags |= Qt.ItemIsEditable
return flags