summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-21 12:28:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-21 20:26:12 +0300
commitf4fe732ccbd65fd584b7787f3b5aec904a85d11b (patch)
tree5cf6023ab3713316326547026c10f2fb4ce6d8b8 /src/gui/windows/updaterwindow.cpp
parentc78423448941517eeae0a60e703a5dc2976aed0c (diff)
downloadmv-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.gz
mv-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.bz2
mv-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.xz
mv-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.zip
Fix code style.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r--src/gui/windows/updaterwindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 898d50425..ff194ada4 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -38,7 +38,8 @@
#include "gui/widgets/progressbar.h"
#include "gui/widgets/scrollarea.h"
-#include "net/logindata.h"
+#include "net/download.h"
+#include "net/updatetype.h"
#include "resources/resourcemanager.h"
@@ -463,12 +464,12 @@ int UpdaterWindow::updateProgress(void *ptr, DownloadStatus::Type status,
if (!uw)
return -1;
- if (status == DownloadStatus::COMPLETE)
+ if (status == DownloadStatus::Complete)
{
uw->mDownloadComplete = true;
}
- else if (status == DownloadStatus::ERROR ||
- status == DownloadStatus::CANCELLED)
+ else if (status == DownloadStatus::Error ||
+ status == DownloadStatus::Cancelled)
{
if (uw->mDownloadStatus == UPDATE_COMPLETE)
{ // ignoring error in last state (was UPDATE_PATCH)