mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #692
This commit is contained in:
parent
94e8b22b85
commit
1e39c5ee21
@ -298,13 +298,12 @@ class BooksModel(QAbstractTableModel):
|
|||||||
if col == 0:
|
if col == 0:
|
||||||
text = self.db.title(row)
|
text = self.db.title(row)
|
||||||
if text:
|
if text:
|
||||||
return QVariant(BooksView.wrap(text, width=35))
|
return QVariant(text)
|
||||||
elif col == 1:
|
elif col == 1:
|
||||||
au = self.db.authors(row)
|
au = self.db.authors(row)
|
||||||
if au:
|
if au:
|
||||||
au = au.split(',')
|
au = au.split(',')
|
||||||
jau = [ BooksView.wrap(a, width=30).strip() for a in au ]
|
return QVariant("\n".join(au))
|
||||||
return QVariant("\n".join(jau))
|
|
||||||
elif col == 2:
|
elif col == 2:
|
||||||
size = self.db.max_size(row)
|
size = self.db.max_size(row)
|
||||||
if size:
|
if size:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user