Commit c3f3b7ae authored by Martin Straka's avatar Martin Straka

Used round instead of ceil in QML

parent 65b80476
......@@ -92,7 +92,7 @@ Item {
return true
}
if (totalAttachmentSizeBytes >= 1024) {
attachmentsSizeLabel.text = qsTr("Total size of attachments is ~%1 kB.").arg(Math.ceil(totalAttachmentSizeBytes/1024))
attachmentsSizeLabel.text = qsTr("Total size of attachments is ~%1 kB.").arg(Math.round(totalAttachmentSizeBytes/1024))
} else {
attachmentsSizeLabel.text = qsTr("Total size of attachments is %1 B.").arg(totalAttachmentSizeBytes)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment