summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/progressbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index 98c31873..d31b6853 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -94,7 +94,7 @@ ProgressBar::~ProgressBar()
void ProgressBar::logic()
{
- if (mSmoothColorChange)
+ if (mSmoothColorChange && mColorToGo != mColor)
{
// Smoothly changing the color for a nicer effect.
if (mColorToGo.r > mColor.r)
@@ -111,7 +111,7 @@ void ProgressBar::logic()
mColor.b--;
}
- if (mSmoothProgress)
+ if (mSmoothProgress && mProgressToGo != mProgress)
{
// Smoothly showing the progressbar changes.
if (mProgressToGo > mProgress)