diff options
Diffstat (limited to 'src/timeline/widgets/FileItem.cc')
-rw-r--r-- | src/timeline/widgets/FileItem.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeline/widgets/FileItem.cc b/src/timeline/widgets/FileItem.cc index e70be9da..e4cc02b2 100644 --- a/src/timeline/widgets/FileItem.cc +++ b/src/timeline/widgets/FileItem.cc @@ -94,6 +94,9 @@ FileItem::FileItem(QSharedPointer<MatrixClient> client, QString FileItem::calculateFileSize(int nbytes) const { + if (nbytes == 0) + return QString(""); + if (nbytes < 1024) return QString("%1 B").arg(nbytes); |