diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index d3c2e4f10f..181d0c784b 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1123,12 +1123,12 @@ class DeviceGUI(object): if cache: if id in cache['db_ids']: loc[i] = True - break + continue if mi.authors and \ re.sub('(?u)\W|[_]', '', authors_to_string(mi.authors).lower()) \ in cache['authors']: loc[i] = True - break + continue return loc def set_books_in_library(self, booklists, reset=False):