Fix #8417 (yes/no columns difficulty?)

This commit is contained in:
Kovid Goyal 2011-01-18 10:41:13 -07:00
commit e24f359a84

View File

@ -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)