mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Quickview: Fix sizes not being displayed. Fixes #1772151 [In quickview the size of the epub isn't visable](https://bugs.launchpad.net/calibre/+bug/1772151)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
8ed67769dd
@ -516,7 +516,7 @@ class Quickview(QDialog, Ui_Quickview):
|
|||||||
'which also changes the selected book.'
|
'which also changes the selected book.'
|
||||||
) + '</p>')
|
) + '</p>')
|
||||||
for row, b in enumerate(books):
|
for row, b in enumerate(books):
|
||||||
mi = self.db.get_metadata(b, index_is_id=True, get_user_categories=False)
|
mi = self.db.new_api.get_proxy_metadata(b)
|
||||||
for col in self.column_order:
|
for col in self.column_order:
|
||||||
try:
|
try:
|
||||||
if col == 'title':
|
if col == 'title':
|
||||||
@ -531,6 +531,13 @@ class Quickview(QDialog, Ui_Quickview):
|
|||||||
a = TableItem('', '', 0)
|
a = TableItem('', '', 0)
|
||||||
else:
|
else:
|
||||||
a = TableItem(series, mi.series, mi.series_index)
|
a = TableItem(series, mi.series, mi.series_index)
|
||||||
|
elif col == 'size':
|
||||||
|
v = mi.get('book_size')
|
||||||
|
if v is not None:
|
||||||
|
a = TableItem('{:n}'.format(v), v)
|
||||||
|
a.setTextAlignment(Qt.AlignRight)
|
||||||
|
else:
|
||||||
|
a = TableItem(' ', None)
|
||||||
elif self.fm[col]['datatype'] == 'series':
|
elif self.fm[col]['datatype'] == 'series':
|
||||||
v = mi.format_field(col)[1]
|
v = mi.format_field(col)[1]
|
||||||
a = TableItem(v, mi.get(col), mi.get(col+'_index'))
|
a = TableItem(v, mi.get(col), mi.get(col+'_index'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user