From d6c7447e0aa9154208ee67e9632349aba6a9389e Mon Sep 17 00:00:00 2001 From: John Schember Date: Thu, 21 Apr 2011 06:41:37 -0400 Subject: [PATCH] Store: Update drm check. --- src/calibre/gui2/store/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/search.py b/src/calibre/gui2/store/search.py index 1c9564a386..ba84d4583c 100644 --- a/src/calibre/gui2/store/search.py +++ b/src/calibre/gui2/store/search.py @@ -588,9 +588,9 @@ class Matches(QAbstractItemModel): elif col == 3: text = comparable_price(result.price) elif col == 4: - if result.drm: + if result.drm == SearchResult.DRM_UNLOCKED: text = 'a' - elif result.drm == False: + elif result.drm == SearchResult.DRM_LOCKED: text = 'b' else: text = 'c'