mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Make bulk edit of custom columns respect the "apply changes" checkbox even if the value to set has not changed
This commit is contained in:
commit
5b48a4c07b
@ -622,8 +622,7 @@ class BulkBase(Base):
|
|||||||
return
|
return
|
||||||
val = self.gui_val
|
val = self.gui_val
|
||||||
val = self.normalize_ui_val(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=''):
|
def make_widgets(self, parent, main_widget_class, extra_label_text=''):
|
||||||
w = QWidget(parent)
|
w = QWidget(parent)
|
||||||
@ -1030,8 +1029,7 @@ class BulkText(BulkBase):
|
|||||||
else:
|
else:
|
||||||
val = self.gui_val
|
val = self.gui_val
|
||||||
val = self.normalize_ui_val(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):
|
def getter(self):
|
||||||
if self.col_metadata['is_multiple']:
|
if self.col_metadata['is_multiple']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user