diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-25 01:12:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-25 01:12:48 +0300 |
commit | 992f105f78fb0e4c42fcc7941e289a2348a3ccaf (patch) | |
tree | c4d0712843052cea01fb53da5647545bada68b53 /src/gui | |
parent | c9a77e5911a188667f68f5f3a91fc9e4b2fcc960 (diff) | |
download | manaplus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.tar.gz manaplus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.tar.bz2 manaplus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.tar.xz manaplus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.zip |
Fix code style.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/statuswindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index 410ee08e2..a5fd12d40 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -522,9 +522,14 @@ void StatusWindow::updateProgressBar(ProgressBar *bar, int value, int max, / static_cast<float>(max); if (percent) - bar->setText(strprintf("%2.5f%%", static_cast<double>(100 * progress))); + { + bar->setText(strprintf("%2.5f%%", + static_cast<double>(100 * progress))); + } else + { bar->setText(toString(value) + "/" + toString(max)); + } bar->setProgress(progress); } |