summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-26 06:27:56 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-26 06:27:56 -0500
commit08bf03854d0688cd8dbbfed7d596888dbedfcb4b (patch)
treee9f6058e6ef3d86178219a40fd8c0fcfffe1cd1d /src/downloadmanager.cpp
parent637188a58bd99e6355ced6c296533c362fb8efd6 (diff)
removed useless logging about servers
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index c84d4bd4..3143a22e 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -996,8 +996,8 @@ void DownloadManager::queryInfoMd5(int index)
QCryptographicHash hash(QCryptographicHash::Md5);
const qint64 progressStep = 10 * 1024 * 1024;
QProgressDialog progress(tr("Hashing download file '%1'").arg(info->m_FileName),
- tr("Cancel"),
- 0,
+ tr("Cancel"),
+ 0,
downloadFile.size() / progressStep);
progress.setWindowModality(Qt::WindowModal);
progress.setMinimumDuration(1000);
@@ -1606,7 +1606,7 @@ void DownloadManager::nxmFilesAvailable(QString, int, QVariant userData, QVarian
emit showMessage(tr("No matching file found on Nexus! Maybe this file is no longer available or it was renamed?"));
} else {
SelectionDialog selection(tr("No file on Nexus matches the selected file by name. Please manually choose the correct one."));
- std::sort(files.begin(), files.end(), [](const QVariant& lhs, const QVariant& rhs)
+ std::sort(files.begin(), files.end(), [](const QVariant& lhs, const QVariant& rhs)
{return lhs.toMap()["uploaded_timestamp"].toInt() > rhs.toMap()["uploaded_timestamp"].toInt();});
for (QVariant file : files) {
QVariantMap fileInfo = file.toMap();
@@ -1692,7 +1692,6 @@ static int evaluateFileInfoMap(
}
if (!found) {
- log::error("server '{}' not found while sorting by preference", name);
return 0;
}