mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make cc editing work with new threading structure.
This commit is contained in:
parent
0521321d69
commit
5aaa7b620c
@ -77,12 +77,7 @@ class Worker(Thread):
|
|||||||
if do_remove_conv:
|
if do_remove_conv:
|
||||||
self.db.delete_conversion_options(id, 'PIPE')
|
self.db.delete_conversion_options(id, 'PIPE')
|
||||||
self.db.conn.commit()
|
self.db.conn.commit()
|
||||||
|
self.db.bulk_modify_tags(self.ids, add=add, remove=remove, notify=False)
|
||||||
for w in getattr(self, 'custom_column_widgets', []):
|
|
||||||
w.commit(self.ids)
|
|
||||||
self.db.bulk_modify_tags(self.ids, add=add, remove=remove,
|
|
||||||
notify=False)
|
|
||||||
self.db.clean()
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
@ -229,6 +224,11 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
|
|||||||
return error_dialog(self, _('Failed'),
|
return error_dialog(self, _('Failed'),
|
||||||
self.worker.error[0], det_msg=self.worker.error[1],
|
self.worker.error[0], det_msg=self.worker.error[1],
|
||||||
show=True)
|
show=True)
|
||||||
|
|
||||||
|
for w in getattr(self, 'custom_column_widgets', []):
|
||||||
|
w.commit(self.ids)
|
||||||
|
self.db.clean()
|
||||||
|
|
||||||
return QDialog.accept(self)
|
return QDialog.accept(self)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user