From 97af13bd226f528352848f6f85b36024523d1a76 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 3 Jul 2010 20:07:11 -0600 Subject: [PATCH] ... --- src/calibre/gui2/library/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index c487a8a252..7ffbc42f02 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -937,6 +937,7 @@ class DeviceBooksModel(BooksModel): # {{{ cname = self.column_map[index.column()] if cname in ('title', 'authors') or \ (cname == 'collections' and \ + callable(getattr(self.db, 'supports_collections', None)) and \ self.db.supports_collections() and \ prefs['preserve_user_collections']): flags |= Qt.ItemIsEditable