mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #875196 (Cover search didn't resume after pressing Back)
This commit is contained in:
parent
1a5ae7140f
commit
96e4bf02c4
@ -587,7 +587,6 @@ class CoversModel(QAbstractListModel): # {{{
|
|||||||
return 1
|
return 1
|
||||||
return pmap.width()*pmap.height()
|
return pmap.width()*pmap.height()
|
||||||
|
|
||||||
|
|
||||||
def clear_failed(self):
|
def clear_failed(self):
|
||||||
good = []
|
good = []
|
||||||
pmap = {}
|
pmap = {}
|
||||||
@ -729,7 +728,8 @@ class CoversWidget(QWidget): # {{{
|
|||||||
except Empty:
|
except Empty:
|
||||||
break
|
break
|
||||||
|
|
||||||
self.covers_view.clear_failed()
|
if self.continue_processing:
|
||||||
|
self.covers_view.clear_failed()
|
||||||
|
|
||||||
if self.worker.error is not None:
|
if self.worker.error is not None:
|
||||||
error_dialog(self, _('Download failed'),
|
error_dialog(self, _('Download failed'),
|
||||||
@ -759,7 +759,7 @@ class CoversWidget(QWidget): # {{{
|
|||||||
self.continue_processing = False
|
self.continue_processing = False
|
||||||
|
|
||||||
def cancel(self):
|
def cancel(self):
|
||||||
self.continue_processing = False
|
self.cleanup()
|
||||||
self.abort.set()
|
self.abort.set()
|
||||||
|
|
||||||
def cover_pixmap(self):
|
def cover_pixmap(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user