From b5b681d5255b069fd7b40820d070667886154087 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 28 Oct 2015 20:40:38 +0530 Subject: [PATCH] Edit metadata dialog: When downloading metadata with download of authors turned off, do not regenerate the author sort field after the download. Fixes #1510335 ["Author Sort" corrupted when using "Download metadata"](https://bugs.launchpad.net/calibre/+bug/1510335) --- src/calibre/gui2/metadata/single.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/metadata/single.py b/src/calibre/gui2/metadata/single.py index d68b6cc4f6..982b249e62 100644 --- a/src/calibre/gui2/metadata/single.py +++ b/src/calibre/gui2/metadata/single.py @@ -421,7 +421,7 @@ class MetadataSingleDialogBase(ResizableDialog): self.authors.set_value(mi.authors) if not mi.is_null('author_sort'): self.author_sort.set_value(mi.author_sort) - elif update_sorts: + elif update_sorts and not mi.is_null('authors'): self.author_sort.auto_generate() if not mi.is_null('rating'): try: