diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index f364638f37..0e89358c53 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -550,9 +550,7 @@ class BulkText(BulkBase): remove_all, adding, rtext = self.gui_val remove = set() if remove_all: - for book_id in book_ids: - remove |= set(self.db.get_custom(book_id, num=self.col_id, - index_is_id=True)) + remove = set(self.db.all_custom(num=self.col_id)) else: txt = rtext if txt: