diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-03 17:31:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-03 17:31:26 +0300 |
commit | b592850c224965729dfb68fcdce486346ab8301a (patch) | |
tree | c18fd7dd1fc92428c6452ac31af6fe864a10c8af /src/gui/windows/updaterwindow.cpp | |
parent | cb6899fa0d8488e7e380179cb2d4bde763667d71 (diff) | |
download | manaverse-b592850c224965729dfb68fcdce486346ab8301a.tar.gz manaverse-b592850c224965729dfb68fcdce486346ab8301a.tar.bz2 manaverse-b592850c224965729dfb68fcdce486346ab8301a.tar.xz manaverse-b592850c224965729dfb68fcdce486346ab8301a.zip |
Add support for update server mirrors.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 75460cf78..37bbabda3 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -540,6 +540,10 @@ void UpdaterWindow::download() "/").append(mCurrentFile), &updateProgress, false, false); } + const std::vector<std::string> &mirrors = client->getMirrors(); + FOR_EACH (std::vector<std::string>::const_iterator, it, mirrors) + mDownload->addMirror(*it); + if (mStoreInMemory) { mDownload->setWriteFunction(&UpdaterWindow::memoryWrite); |