From 25fa78ed6e1a9469cb64c4f7a3fcfae3779a64ce Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 18 Jan 2011 17:31:03 +0000 Subject: [PATCH] Use DelegateCB with enum columns --- 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 e9b9255c64..ae9d6e2f71 100644 --- a/src/calibre/gui2/library/delegates.py +++ b/src/calibre/gui2/library/delegates.py @@ -292,7 +292,7 @@ class CcEnumDelegate(QStyledItemDelegate): # {{{ def createEditor(self, parent, option, index): m = index.model() col = m.column_map[index.column()] - editor = QComboBox(parent) + editor = DelegateCB(parent) editor.addItem('') for v in m.custom_columns[col]['display']['enum_values']: editor.addItem(v)