From f4fe732ccbd65fd584b7787f3b5aec904a85d11b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 May 2014 12:28:40 +0300 Subject: Fix code style. --- src/gui/windows/updaterwindow.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/updaterwindow.cpp') 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) -- cgit v1.2.3-70-g09d2