mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix bug #1889973 custom column of bool type: cannot delete default value once it's set
This commit is contained in:
parent
716db6162b
commit
dac7563405
@ -543,6 +543,8 @@ class CreateCustomColumn(QDialog):
|
||||
|
||||
default_val = (unicode_type(self.default_value.text()).strip()
|
||||
if col_type != 'composite' else None)
|
||||
if self.editing_col:
|
||||
self.parent.custcols[self.orig_column_name]['display'].pop('default_value', None)
|
||||
|
||||
if col_type == 'datetime':
|
||||
if unicode_type(self.format_box.text()).strip():
|
||||
|
Loading…
x
Reference in New Issue
Block a user