From bb94f0007b853b39925c0847f929ca7d152dfad6 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Thu, 11 Jul 2013 15:44:38 +0200 Subject: [PATCH] In device view, make "waiting to sync" icon have precedence over "matched" icon --- src/calibre/gui2/library/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index 3dc85bf46a..af293b864d 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -1545,10 +1545,10 @@ class DeviceBooksModel(BooksModel): # {{{ self.db.supports_collections()): return QVariant(_("Double click to edit me

")) elif role == Qt.DecorationRole and cname == 'inlibrary': - if self.db[self.map[row]].in_library: - return QVariant(self.bool_yes_icon) - elif hasattr(self.db[self.map[row]], 'in_library_waiting'): + if hasattr(self.db[self.map[row]], 'in_library_waiting'): return QVariant(self.sync_icon) + elif self.db[self.map[row]].in_library: + return QVariant(self.bool_yes_icon) elif self.db[self.map[row]].in_library is not None: return QVariant(self.bool_no_icon) elif role == Qt.TextAlignmentRole: