summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/downloadarchivesjob.h
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2023-08-15 10:18:19 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2023-08-21 12:56:57 +0300
commit13212a89505ec646ced77c319256c8191fbc2e90 (patch)
tree0c89097e3cf0cd04f9d62796d9b3353f54be8168 /src/libs/installer/downloadarchivesjob.h
parent09612bc1ca12adedb11268fea834785e6f1cd70c (diff)
DownloadArchivesJob: allow download retries for command line runs
Previously, on network errors or hash verification failures, the download job would be canceled when running the installer from CLI. This was to prevent infinite retries in case the automatic or default answer for the error message boxes was to retry. Add a retry counter and allow retrying the failed downloads from CLI runs until the max count is reached. Task-number: QTIFW-3098 Change-Id: Iee95f0eb4e47af89c74ffdd9ad6026bda6c87664 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/downloadarchivesjob.h')
-rw-r--r--src/libs/installer/downloadarchivesjob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/downloadarchivesjob.h b/src/libs/installer/downloadarchivesjob.h
index c156d0244..122af2831 100644
--- a/src/libs/installer/downloadarchivesjob.h
+++ b/src/libs/installer/downloadarchivesjob.h
@@ -103,6 +103,8 @@ private:
quint64 m_totalSizeToDownload;
quint64 m_totalSizeDownloaded;
QElapsedTimer m_totalDownloadSpeedTimer;
+
+ uint m_retryCount;
};
} // namespace QInstaller