mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Fixed download info when download size is unknown
This commit is contained in:
parent
8b4ae53b71
commit
eefc61733f
@ -248,6 +248,9 @@ void DownloadItem::updateDownloadInfo(double currSpeed, qint64 received, qint64
|
|||||||
QString currSize = fileSizeToString(received);
|
QString currSize = fileSizeToString(received);
|
||||||
QString fileSize = fileSizeToString(total);
|
QString fileSize = fileSizeToString(total);
|
||||||
|
|
||||||
|
if (fileSize == tr("Unknown size"))
|
||||||
|
ui->downloadInfo->setText(tr("%2 of %3 (%4)").arg(currSize, fileSize, speed));
|
||||||
|
else
|
||||||
ui->downloadInfo->setText(tr("Remaining %1 - %2 of %3 (%4)").arg(remTime, currSize, fileSize, speed));
|
ui->downloadInfo->setText(tr("Remaining %1 - %2 of %3 (%4)").arg(remTime, currSize, fileSize, speed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user