diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-21 12:28:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-21 20:26:12 +0300 |
commit | f4fe732ccbd65fd584b7787f3b5aec904a85d11b (patch) | |
tree | 5cf6023ab3713316326547026c10f2fb4ce6d8b8 /src/gui/windows/serverdialog.cpp | |
parent | c78423448941517eeae0a60e703a5dc2976aed0c (diff) | |
download | manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.gz manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.bz2 manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.xz manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.zip |
Fix code style.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index a56c79a3b..48ccd9f6d 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -31,6 +31,7 @@ #include "input/inputaction.h" +#include "net/download.h" #include "gui/gui.h" #include "gui/fonts/font.h" @@ -683,7 +684,7 @@ void ServerDialog::saveCustomServers(const ServerInfo ¤tServer, int ServerDialog::downloadUpdate(void *ptr, DownloadStatus::Type status, size_t total, size_t remaining) { - if (!ptr || status == DownloadStatus::CANCELLED) + if (!ptr || status == DownloadStatus::Cancelled) return -1; ServerDialog *const sd = reinterpret_cast<ServerDialog*>(ptr); @@ -692,7 +693,7 @@ int ServerDialog::downloadUpdate(void *ptr, DownloadStatus::Type status, if (!sd->mDownload) return -1; - if (status == DownloadStatus::COMPLETE) + if (status == DownloadStatus::Complete) { finished = true; } |