mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre into master
Fix #1889973 [custom column of bool type: cannot delete default value once it's set](https://bugs.launchpad.net/calibre/+bug/1889973)
This commit is contained in:
commit
bb8ca90eb2
@ -666,6 +666,8 @@ class CreateCustomColumn(QDialog):
|
||||
else:
|
||||
self.parent.custcols[self.orig_column_name]['label'] = col
|
||||
self.parent.custcols[self.orig_column_name]['name'] = col_heading
|
||||
# Remove any previous default value
|
||||
self.parent.custcols[self.orig_column_name]['display'].pop('default_value', None)
|
||||
self.parent.custcols[self.orig_column_name]['display'].update(display_dict)
|
||||
self.parent.custcols[self.orig_column_name]['*edited'] = True
|
||||
self.parent.custcols[self.orig_column_name]['*must_restart'] = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user