Fix #6337 (Download cover and immediately click ok button)

This commit is contained in:
Kovid Goyal 2010-07-30 11:35:13 -06:00
parent 15d0d84971
commit 898b61a55e

View File

@ -677,6 +677,10 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
def accept(self): def accept(self):
cf = getattr(self, 'cover_fetcher', None)
if cf is not None and hasattr(cf, 'terminate'):
cf.terminate()
cf.wait()
try: try:
if self.formats_changed: if self.formats_changed:
self.sync_formats() self.sync_formats()