From 07c614f897a31a6a8bc03de52f4dab5b78d72530 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 12 Aug 2016 20:15:33 +0530 Subject: [PATCH] Fix a regression in the previous release that caused the completion popups for some custom column types int he book list to stop working. Fixes #1612640 [Editing user defined column directly in a table cell does not display a combo with existing values anymore](https://bugs.launchpad.net/calibre/+bug/1612640) --- src/calibre/gui2/library/delegates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/delegates.py b/src/calibre/gui2/library/delegates.py index 83579e22c4..40179d6ebf 100644 --- a/src/calibre/gui2/library/delegates.py +++ b/src/calibre/gui2/library/delegates.py @@ -458,7 +458,7 @@ class CcTextDelegate(QStyledItemDelegate, UpdateEditorGeometry): # {{{ m = index.model() col = m.column_map[index.column()] key = m.db.field_metadata.key_to_label(col) - if m.db.field_metadata[col]['is_multiple']: + if m.db.field_metadata[col]['datatype'] != 'comments': editor = EditWithComplete(parent) editor.set_separator(None) complete_items = sorted(list(m.db.all_custom(label=key)), key=sort_key)