From eaf68c07867e76da1f2e935aa872145a46138d22 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 19 Jun 2010 14:39:02 +0100 Subject: [PATCH] Fix bug preventing editing collections on a sony --- src/calibre/gui2/library/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index ca1afbe6b4..dcc338dbdc 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -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