summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-03 20:16:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-03 20:16:10 +0300
commit25bed1bb7f7dbfa3caa0f239c63dbabd3b0bd50d (patch)
tree8bfccdf8798a10538852a7c1c2602222a7a21884 /src/gui/windows/updaterwindow.cpp
parent97a95e67ca713a306ae76f2d9bb804543f3c991d (diff)
downloadManaVerse-25bed1bb7f7dbfa3caa0f239c63dbabd3b0bd50d.tar.gz
ManaVerse-25bed1bb7f7dbfa3caa0f239c63dbabd3b0bd50d.tar.bz2
ManaVerse-25bed1bb7f7dbfa3caa0f239c63dbabd3b0bd50d.tar.xz
ManaVerse-25bed1bb7f7dbfa3caa0f239c63dbabd3b0bd50d.zip
Fix downloading updates from mirrors.
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 37bbabda3..842176793 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -533,16 +533,20 @@ void UpdaterWindow::download()
mDownload = new Net::Download(this,
"http://manaplus.org/update/" + mCurrentFile,
&updateProgress, true, false);
+ mDownload->addMirror("http://www.manaplus.org/update/" + mCurrentFile);
}
else
{
mDownload = new Net::Download(this, std::string(mUpdateHost).append(
"/").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);
+ const std::vector<std::string> &mirrors = client->getMirrors();
+ FOR_EACH (std::vector<std::string>::const_iterator, it, mirrors)
+ {
+ mDownload->addMirror(std::string(*it).append(
+ "/").append(mCurrentFile));
+ }
+ }
if (mStoreInMemory)
{