Store: chooser, fix sorting by drm.

This commit is contained in:
John Schember 2011-05-25 17:51:29 -04:00
parent d39a8d0dd3
commit 7b98249b90

View File

@ -130,7 +130,7 @@ class Matches(QAbstractItemModel):
elif col == 1: elif col == 1:
text = match.name text = match.name
elif col == 2: elif col == 2:
text = 'b' if getattr(match, 'drm', True) else 'a' text = 'a' if getattr(match, 'drm_free_only', True) else 'b'
elif col == 3: elif col == 3:
text = getattr(match, 'headquarters', '') text = getattr(match, 'headquarters', '')
return text return text