mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Fixed download info when download size is unknown
This commit is contained in:
parent
8b4ae53b71
commit
eefc61733f
|
@ -248,7 +248,10 @@ void DownloadItem::updateDownloadInfo(double currSpeed, qint64 received, qint64
|
|||
QString currSize = fileSizeToString(received);
|
||||
QString fileSize = fileSizeToString(total);
|
||||
|
||||
ui->downloadInfo->setText(tr("Remaining %1 - %2 of %3 (%4)").arg(remTime, currSize, fileSize, speed));
|
||||
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));
|
||||
}
|
||||
|
||||
void DownloadItem::stop(bool askForDeleteFile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user