summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-04 00:11:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-04 00:11:40 +0300
commitb90595ef486f10d4b5e069e9363a2df5270fe717 (patch)
treec26306dfa2d399b221bce7a8d813a5a0afe904c6 /src/gui/windows/updaterwindow.cpp
parent5d7ba868467acd572bdf248e46056f8759eb95b2 (diff)
downloadplus-b90595ef486f10d4b5e069e9363a2df5270fe717.tar.gz
plus-b90595ef486f10d4b5e069e9363a2df5270fe717.tar.bz2
plus-b90595ef486f10d4b5e069e9363a2df5270fe717.tar.xz
plus-b90595ef486f10d4b5e069e9363a2df5270fe717.zip
Add another mirror into manaplus downloads list.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r--src/gui/windows/updaterwindow.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 0422f7553..c70222677 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -70,6 +70,8 @@ const std::string updateServer3
("http://download.manaplus.org/manaplus/updates/");
const std::string updateServer4
("http://download2.manaplus.org/manaplus/updates/");
+const std::string updateServer5
+ ("http://download3.manaplus.org/manaplus/updates/");
/**
* Load the given file into a vector of updateFiles.
@@ -566,6 +568,8 @@ void UpdaterWindow::download()
+ mCurrentFile);
mDownload->addMirror("http://www2.manaplus.org/update/"
+ mCurrentFile);
+ mDownload->addMirror("http://www3.manaplus.org/update/"
+ + mCurrentFile);
}
else
{
@@ -577,10 +581,10 @@ void UpdaterWindow::download()
if (mDownloadStatus == UPDATE_LIST2
|| mDownloadStatus == UPDATE_RESOURCES2)
{
- mDownload->addMirror(updateServer3 + mUpdateServerPath
- + "/" + mCurrentFile);
- mDownload->addMirror(updateServer4 + mUpdateServerPath
- + "/" + mCurrentFile);
+ const std::string str = mUpdateServerPath + "/" + mCurrentFile;
+ mDownload->addMirror(updateServer3 + str);
+ mDownload->addMirror(updateServer4 + str);
+ mDownload->addMirror(updateServer5 + str);
}
else
{