From 721b48038e75a6992b849379b5f685458caa45b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 1 Jun 2010 16:07:40 -0600 Subject: [PATCH] Fix minor multiple location ondevice bug --- src/calibre/gui2/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):