Prevent custom columns from overriding the information shown in the book details panel

This commit is contained in:
Kovid Goyal 2011-01-12 11:40:46 -07:00
parent 173e7eb972
commit 08d7a000c9

View File

@ -358,8 +358,9 @@ class BooksModel(QAbstractTableModel): # {{{
name, val = mi.format_field(key) name, val = mi.format_field(key)
if mi.metadata_for_field(key)['datatype'] == 'comments': if mi.metadata_for_field(key)['datatype'] == 'comments':
name += ':html' name += ':html'
if val: if val and name not in data:
data[name] = val data[name] = val
return data return data