mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 05:23:03 +02:00
Make bulk edit of custom columns respect the "apply changes" box even if the value to set has not changed.
This commit is contained in:
parent
9197ea19b9
commit
79231df21c
1 changed files with 2 additions and 4 deletions
|
|
@ -622,8 +622,7 @@ def commit(self, book_ids, notify=False):
|
|||
return
|
||||
val = self.gui_val
|
||||
val = self.normalize_ui_val(val)
|
||||
if val != self.initial_val:
|
||||
self.db.set_custom_bulk(book_ids, val, num=self.col_id, notify=notify)
|
||||
self.db.set_custom_bulk(book_ids, val, num=self.col_id, notify=notify)
|
||||
|
||||
def make_widgets(self, parent, main_widget_class, extra_label_text=''):
|
||||
w = QWidget(parent)
|
||||
|
|
@ -1030,8 +1029,7 @@ def commit(self, book_ids, notify=False):
|
|||
else:
|
||||
val = self.gui_val
|
||||
val = self.normalize_ui_val(val)
|
||||
if val != self.initial_val:
|
||||
self.db.set_custom_bulk(book_ids, val, num=self.col_id, notify=notify)
|
||||
self.db.set_custom_bulk(book_ids, val, num=self.col_id, notify=notify)
|
||||
|
||||
def getter(self):
|
||||
if self.col_metadata['is_multiple']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue