mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-02 06:55:23 +01: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
1 changed files with 2 additions and 0 deletions
|
|
@ -543,6 +543,8 @@ def accept(self):
|
|||
|
||||
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…
Reference in a new issue