2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

fixed one deadlock, langs change name -> username

This commit is contained in:
John Preston
2015-06-29 15:25:28 +03:00
parent ef9aaf659c
commit 9926357af5
7 changed files with 26 additions and 18 deletions

View File

@@ -2010,10 +2010,10 @@ ImagePtr HistoryPhoto::replyPreview() {
QString formatSizeText(qint64 size) {
if (size >= 1024 * 1024) { // more than 1 mb
qint64 sizeTenthMb = (size * 10 / (1024 * 1024));
return QString::number(sizeTenthMb / 10) + '.' + QString::number(sizeTenthMb % 10) + qsl("MB");
return QString::number(sizeTenthMb / 10) + '.' + QString::number(sizeTenthMb % 10) + qsl(" MB");
}
qint64 sizeTenthKb = (size * 10 / 1024);
return QString::number(sizeTenthKb / 10) + '.' + QString::number(sizeTenthKb % 10) + qsl("KB");
return QString::number(sizeTenthKb / 10) + '.' + QString::number(sizeTenthKb % 10) + qsl(" KB");
}
QString formatDownloadText(qint64 ready, qint64 total) {