diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
commit | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (patch) | |
tree | 5084eaa47d4874a3a573de226f19c4be072e4888 /src/gui/updatewindow.cpp | |
parent | 19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (diff) | |
download | mana-client-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.gz mana-client-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.bz2 mana-client-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.xz mana-client-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.zip |
Reverted changeset r2269 (toString) as requested by ElvenProgrammer.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 4f43d1fc..9db09f27 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -24,6 +24,7 @@ #include "updatewindow.h" #include <iostream> +#include <sstream> #include <SDL.h> #include <SDL_thread.h> @@ -40,8 +41,6 @@ #include "../log.h" #include "../main.h" -#include "../utils/tostring.h" - UpdaterWindow::UpdaterWindow(): Window("Updating..."), mThread(NULL), mMutex(NULL), mDownloadStatus(UPDATE_NEWS), @@ -191,8 +190,10 @@ int UpdaterWindow::updateProgress(void *ptr, if (progress < 0) progress = 0.0f; if (progress > 1) progress = 1.0f; - uw->setLabel( - uw->mCurrentFile + " (" + toString((int)progress * 100) + "%)"); + std::stringstream progressString; + progressString << uw->mCurrentFile + << " (" << ((int)(progress * 100)) << "%)"; + uw->setLabel(progressString.str().c_str()); uw->setProgress(progress); if (state != UPDATE_STATE || uw->mDownloadStatus == UPDATE_ERROR) |