mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bulk metadata edit: Fix search and replace not working for text like custom columns if the column contains only a single value. Fixes #1516890 [Bulk search-and-replace has no effect under certain specific conditions](https://bugs.launchpad.net/calibre/+bug/1516890)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
ba8c06fedf
@ -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