1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Fixed download info when download size is unknown

This commit is contained in:
nowrep 2011-09-15 21:19:47 +02:00
parent 8b4ae53b71
commit eefc61733f

View File

@ -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)