diff options
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 3 | ||||
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 3 | ||||
-rw-r--r-- | src/net/download.h | 3 | ||||
-rw-r--r-- | src/progs/manaplus/actions/actions.cpp | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index a5a6885ad..c52912e2d 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -469,7 +469,8 @@ void ServerDialog::downloadServerList() mDownload = new Net::Download(this, listFile, &downloadUpdate, false, false, true); mDownload->setFile(pathJoin(mDir, - branding.getStringValue("onlineServerFile"))); + branding.getStringValue("onlineServerFile")), + -1); if (!listFile2.empty()) mDownload->addMirror(listFile2); mDownload->start(); diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 3acc930dc..6ca35ff9d 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -636,7 +636,8 @@ void UpdaterWindow::download() else { mDownload->setFile(pathJoin(mUpdatesDir, - mCurrentFile)); + mCurrentFile), + -1); } } diff --git a/src/net/download.h b/src/net/download.h index ce99b7b91..5affb0650 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -65,7 +65,8 @@ class Download final */ void noCache(); - void setFile(const std::string &filename, const int64_t adler32 = -1); + void setFile(const std::string &filename, + const int64_t adler32); void setWriteFunction(WriteFunction write); diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp index 4f1998e2b..6dee5a6a1 100644 --- a/src/progs/manaplus/actions/actions.cpp +++ b/src/progs/manaplus/actions/actions.cpp @@ -204,7 +204,7 @@ static void uploadFile(const std::string &str, info->text = str; info->addStr = addStr; info->tab = tab; - upload->setFile(fileName); + upload->setFile(fileName, -1); upload->start(); } |