From 992f105f78fb0e4c42fcc7941e289a2348a3ccaf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Jan 2012 01:12:48 +0300 Subject: Fix code style. --- src/gui/statuswindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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(max); if (percent) - bar->setText(strprintf("%2.5f%%", static_cast(100 * progress))); + { + bar->setText(strprintf("%2.5f%%", + static_cast(100 * progress))); + } else + { bar->setText(toString(value) + "/" + toString(max)); + } bar->setProgress(progress); } -- cgit v1.2.3-70-g09d2