Fixes #1910662 [Quickview: Composite column shows as one string?](https://bugs.launchpad.net/calibre/+bug/1910662)
This commit is contained in:
Kovid Goyal 2021-01-08 16:57:24 +05:30
commit bd9f294318
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -515,7 +515,9 @@ class Quickview(QDialog, Ui_Quickview):
mi = self.db.get_metadata(book_id, index_is_id=True, get_user_categories=False)
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:
# Check if we are in the GridView and there are no values for the
# selected column. In this case switch the column to 'authors'