mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 07:03:32 +02:00
...
This commit is contained in:
parent
794cb48fbd
commit
dd8e2651b9
2 changed files with 4 additions and 3 deletions
|
|
@ -433,7 +433,7 @@ def database_changed(self, db):
|
|||
self.setItemDelegateForColumn(cm.index(colhead), delegate)
|
||||
elif cc['datatype'] == 'comments':
|
||||
self.setItemDelegateForColumn(cm.index(colhead), self.cc_comments_delegate)
|
||||
elif cc['datatype'] in 'text':
|
||||
elif cc['datatype'] == 'text':
|
||||
if cc['is_multiple']:
|
||||
if cc['display'].get('is_names', False):
|
||||
self.setItemDelegateForColumn(cm.index(colhead),
|
||||
|
|
|
|||
|
|
@ -696,8 +696,9 @@ def browse_get_book_args(self, mi, id_, add_category_links=False):
|
|||
xml(val if len(dbtags) == 1 else tag.name),
|
||||
xml(key, True)))
|
||||
join = ' & ' if key == 'authors' or \
|
||||
fm['display'].get('is_names', False) \
|
||||
else ', '
|
||||
(fm['is_custom'] and
|
||||
fm['display'].get('is_names', False)) \
|
||||
else ', '
|
||||
args[key] = join.join(vals)
|
||||
added_key = True
|
||||
if not added_key:
|
||||
|
|
|
|||
Loading…
Reference in a new issue