mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Enum problem that prevents creating custom columns on calibre 6 beta
This commit is contained in:
parent
f47f50d359
commit
3c97500e1a
@ -631,7 +631,7 @@ class CreateCustomColumn(QDialog):
|
|||||||
display_dict['default_value'] = tv
|
display_dict['default_value'] = tv
|
||||||
|
|
||||||
if col_type in ['text', 'composite', 'enumeration'] and not is_multiple:
|
if col_type in ['text', 'composite', 'enumeration'] and not is_multiple:
|
||||||
display_dict['use_decorations'] = self.use_decorations.checkState()
|
display_dict['use_decorations'] = self.use_decorations.checkState() == Qt.CheckState.Checked
|
||||||
|
|
||||||
if default_val and 'default_value' not in display_dict:
|
if default_val and 'default_value' not in display_dict:
|
||||||
display_dict['default_value'] = default_val
|
display_dict['default_value'] = default_val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user