Fix #798441 (Download Metadata hangs Calibre)

This commit is contained in:
Kovid Goyal 2011-06-16 18:09:56 -06:00
parent 0d2ba940ce
commit cc31246f08

View File

@ -388,6 +388,10 @@ class MetadataSingleDialogBase(ResizableDialog):
def apply_changes(self):
self.changed.add(self.book_id)
if self.db is None:
# break_cycles has already been called, don't know why this should
# happen but a user reported it
return True
for widget in self.basic_metadata_widgets:
try:
if not widget.commit(self.db, self.book_id):