mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1910662: Composite column shows as one string
This commit is contained in:
parent
b33ea2fcd3
commit
84b0c4a318
@ -515,7 +515,9 @@ class Quickview(QDialog, Ui_Quickview):
|
|||||||
|
|
||||||
mi = self.db.get_metadata(book_id, index_is_id=True, get_user_categories=False)
|
mi = self.db.get_metadata(book_id, index_is_id=True, get_user_categories=False)
|
||||||
vals = mi.get(key, None)
|
vals = mi.get(key, None)
|
||||||
|
if self.fm[key]['datatype'] == 'composite' and self.fm[key]['is_multiple']:
|
||||||
|
sep = self.fm[key]['is_multiple'].get('cache_to_list', ',')
|
||||||
|
vals = [v.strip() for v in vals.split(sep) if v.strip()]
|
||||||
try:
|
try:
|
||||||
# Check if we are in the GridView and there are no values for the
|
# Check if we are in the GridView and there are no values for the
|
||||||
# selected column. In this case switch the column to 'authors'
|
# selected column. In this case switch the column to 'authors'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user