mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e9fc4d4caa
commit
b87afcffc9
@ -605,7 +605,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
size = self.db.data[r][idx]
|
size = self.db.data[r][idx]
|
||||||
if size:
|
if size:
|
||||||
ans = '%.1f'%(float(size)/(1024*1024))
|
ans = '%.1f'%(float(size)/(1024*1024))
|
||||||
if ans == '0.0':
|
if size > 0 and ans == '0.0':
|
||||||
ans = '<0.1'
|
ans = '<0.1'
|
||||||
return QVariant(ans)
|
return QVariant(ans)
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user