From 79231df21ce121eb101d002ae4c346cb278b737c Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 23 Feb 2013 10:11:59 +0100 Subject: [PATCH] Make bulk edit of custom columns respect the "apply changes" box even if the value to set has not changed. --- src/calibre/gui2/custom_column_widgets.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index 0f5bb0a1c9..3597b0fb19 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -622,8 +622,7 @@ class BulkBase(Base): 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 @@ class BulkText(BulkBase): 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']: