mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Prevent custom columns from overriding the information shown in the book details panel
This commit is contained in:
parent
173e7eb972
commit
08d7a000c9
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user