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:
Kovid Goyal 2015-11-17 16:33:10 +05:30
commit ba8c06fedf

View File

@ -1046,9 +1046,11 @@ class BulkText(BulkBase):
if not self.col_metadata['is_multiple']:
val = self.get_initial_value(book_ids)
self.initial_val = val = self.normalize_db_val(val)
self.ignore_change_signals = True
self.main_widget.blockSignals(True)
self.main_widget.show_initial_value(val)
self.main_widget.blockSignals(False)
self.ignore_change_signals = False
def commit(self, book_ids, notify=False):
if not self.a_c_checkbox.isChecked():