summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-12 21:08:13 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-12 21:08:13 -0600
commit9f6c1f0bd9d2ef9a3be35fee2c488d8ea6c09d6d (patch)
treef7c492ed3fc73330083c256e1e47881115837bb2
parent38ede22efeb3405c58b431d480fbf8f896bacb42 (diff)
downloadmana-9f6c1f0bd9d2ef9a3be35fee2c488d8ea6c09d6d.tar.gz
mana-9f6c1f0bd9d2ef9a3be35fee2c488d8ea6c09d6d.tar.bz2
mana-9f6c1f0bd9d2ef9a3be35fee2c488d8ea6c09d6d.tar.xz
mana-9f6c1f0bd9d2ef9a3be35fee2c488d8ea6c09d6d.zip
Fix error in server list download when download has problems
-rw-r--r--src/gui/serverdialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 340536d1..dfe809bc 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -445,6 +445,10 @@ void ServerDialog::logic()
{
mDescription->setCaption(_("Preparing download"));
}
+ else if (mDownloadStatus == DOWNLOADING_ERROR)
+ {
+ mDescription->setCaption(_("Error retreiving server list!"));
+ }
}
Window::logic();
@@ -666,8 +670,7 @@ int ServerDialog::downloadUpdate(void *ptr, DownloadStatus status,
{
logger->log("Error retreiving server list: %s\n",
sd->mDownload->getError());
-
- finished = true;
+ sd->mDownloadStatus = DOWNLOADING_ERROR;
}
else
{