summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-25 01:12:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-25 01:12:48 +0300
commit992f105f78fb0e4c42fcc7941e289a2348a3ccaf (patch)
treec4d0712843052cea01fb53da5647545bada68b53 /src/gui/statuswindow.cpp
parentc9a77e5911a188667f68f5f3a91fc9e4b2fcc960 (diff)
downloadplus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.tar.gz
plus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.tar.bz2
plus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.tar.xz
plus-992f105f78fb0e4c42fcc7941e289a2348a3ccaf.zip
Fix code style.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp7
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);
}