mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1910662 [Quickview: Composite column shows as one string?](https://bugs.launchpad.net/calibre/+bug/1910662)
This commit is contained in:
commit
bd9f294318
@ -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