mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 04:43:16 +02:00
Make cc editing work with new threading structure.
This commit is contained in:
parent
0521321d69
commit
5aaa7b620c
1 changed files with 6 additions and 6 deletions
|
|
@ -77,12 +77,7 @@ def doit(self):
|
|||
if do_remove_conv:
|
||||
self.db.delete_conversion_options(id, 'PIPE')
|
||||
self.db.conn.commit()
|
||||
|
||||
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()
|
||||
self.db.bulk_modify_tags(self.ids, add=add, remove=remove, notify=False)
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
|
|
@ -229,6 +224,11 @@ def accept(self):
|
|||
return error_dialog(self, _('Failed'),
|
||||
self.worker.error[0], det_msg=self.worker.error[1],
|
||||
show=True)
|
||||
|
||||
for w in getattr(self, 'custom_column_widgets', []):
|
||||
w.commit(self.ids)
|
||||
self.db.clean()
|
||||
|
||||
return QDialog.accept(self)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue