mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 09:05:02 +02:00
Fix #692
This commit is contained in:
parent
94e8b22b85
commit
1e39c5ee21
1 changed files with 2 additions and 3 deletions
|
|
@ -298,13 +298,12 @@ def data(self, index, role):
|
|||
if col == 0:
|
||||
text = self.db.title(row)
|
||||
if text:
|
||||
return QVariant(BooksView.wrap(text, width=35))
|
||||
return QVariant(text)
|
||||
elif col == 1:
|
||||
au = self.db.authors(row)
|
||||
if au:
|
||||
au = au.split(',')
|
||||
jau = [ BooksView.wrap(a, width=30).strip() for a in au ]
|
||||
return QVariant("\n".join(jau))
|
||||
return QVariant("\n".join(au))
|
||||
elif col == 2:
|
||||
size = self.db.max_size(row)
|
||||
if size:
|
||||
|
|
|
|||
Loading…
Reference in a new issue