mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8417 (yes/no columns difficulty?)
This commit is contained in:
commit
e24f359a84
@ -292,7 +292,7 @@ class CcEnumDelegate(QStyledItemDelegate): # {{{
|
|||||||
def createEditor(self, parent, option, index):
|
def createEditor(self, parent, option, index):
|
||||||
m = index.model()
|
m = index.model()
|
||||||
col = m.column_map[index.column()]
|
col = m.column_map[index.column()]
|
||||||
editor = QComboBox(parent)
|
editor = DelegateCB(parent)
|
||||||
editor.addItem('')
|
editor.addItem('')
|
||||||
for v in m.custom_columns[col]['display']['enum_values']:
|
for v in m.custom_columns[col]['display']['enum_values']:
|
||||||
editor.addItem(v)
|
editor.addItem(v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user