mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-17 05:50:03 +01:00
...
This commit is contained in:
parent
e578864c94
commit
c2d78fefc0
1 changed files with 6 additions and 1 deletions
|
|
@ -178,7 +178,6 @@ def do_one(self):
|
|||
if self.canceled:
|
||||
return
|
||||
if self.current_idx >= len(self.id_map):
|
||||
self.timer.stop()
|
||||
self.finalize()
|
||||
return
|
||||
|
||||
|
|
@ -209,8 +208,13 @@ def reject(self):
|
|||
QDialog.reject(self)
|
||||
|
||||
def finalize(self):
|
||||
self.timer.stop()
|
||||
|
||||
if self.canceled:
|
||||
return
|
||||
# Prevent queued timer events from having any effect
|
||||
self.canceled = True
|
||||
|
||||
if self.failures:
|
||||
msg = []
|
||||
db = self.gui.current_db
|
||||
|
|
@ -233,6 +237,7 @@ def finalize(self):
|
|||
self.ids, cr)
|
||||
if self.gui.cover_flow:
|
||||
self.gui.cover_flow.dataChanged()
|
||||
|
||||
self.accept()
|
||||
|
||||
_amd = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue