mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1516890: in bulk metadata update, the "apply changes" checkbox for text-like custom columns was erroneously checked if only one value exists for the column, causing the value to be reset when the edit applied.
This commit is contained in:
parent
81dfbd90f9
commit
c39a755177
@ -1046,9 +1046,11 @@ class BulkText(BulkBase):
|
|||||||
if not self.col_metadata['is_multiple']:
|
if not self.col_metadata['is_multiple']:
|
||||||
val = self.get_initial_value(book_ids)
|
val = self.get_initial_value(book_ids)
|
||||||
self.initial_val = val = self.normalize_db_val(val)
|
self.initial_val = val = self.normalize_db_val(val)
|
||||||
|
self.ignore_change_signals = True
|
||||||
self.main_widget.blockSignals(True)
|
self.main_widget.blockSignals(True)
|
||||||
self.main_widget.show_initial_value(val)
|
self.main_widget.show_initial_value(val)
|
||||||
self.main_widget.blockSignals(False)
|
self.main_widget.blockSignals(False)
|
||||||
|
self.ignore_change_signals = False
|
||||||
|
|
||||||
def commit(self, book_ids, notify=False):
|
def commit(self, book_ids, notify=False):
|
||||||
if not self.a_c_checkbox.isChecked():
|
if not self.a_c_checkbox.isChecked():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user