Improve performance of 'remove all tags' in custom_column_widgets.py

This commit is contained in:
Charles Haley 2010-08-23 12:28:16 +01:00
parent 13a9d61969
commit 9a9b94ef0b

View File

@ -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: