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'