Fixed a compilation warning

This commit is contained in:
Veloman Yunkan 2023-12-13 15:04:38 +04:00
parent 3ea69331d4
commit 4f197f5a38

View File

@ -232,7 +232,7 @@ void ContentManagerModel::startDownload(QModelIndex index)
percent = QString::number(percent, 'g', 3).toDouble();
auto completedLength = convertToUnits(downloadInfos["completedLength"].toString());
auto downloadSpeed = convertToUnits(downloadInfos["downloadSpeed"].toString()) + "/s";
node->setDownloadInfo({percent, completedLength, downloadSpeed});
node->setDownloadInfo({percent, completedLength, downloadSpeed, false});
if (!downloadInfos["status"].isValid()) {
node->setIsDownloading(false);
timer->stop();