summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/styleanimator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/coreplugin/styleanimator.cpp')
-rw-r--r--src/plugins/coreplugin/styleanimator.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/styleanimator.cpp b/src/plugins/coreplugin/styleanimator.cpp
index 8ad1a783f5..bd1a9ae4c1 100644
--- a/src/plugins/coreplugin/styleanimator.cpp
+++ b/src/plugins/coreplugin/styleanimator.cpp
@@ -128,9 +128,8 @@ void StyleAnimator::timerEvent(QTimerEvent *)
delete a;
}
}
- if (animations.size() == 0 && animationTimer.isActive()) {
+ if (animations.size() == 0 && animationTimer.isActive())
animationTimer.stop();
- }
}
void StyleAnimator::stopAnimation(const QWidget *w)
@@ -148,7 +147,6 @@ void StyleAnimator::startAnimation(Animation *t)
{
stopAnimation(t->widget());
animations.append(t);
- if (animations.size() > 0 && !animationTimer.isActive()) {
+ if (animations.size() > 0 && !animationTimer.isActive())
animationTimer.start(35, this);
- }
}