aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-10-04 17:39:31 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-05 07:33:29 +0200
commitc7670553720b074664d8b7a6cd9982dd87e5fe4c (patch)
tree76be4ed5254ce7b69bb34f0e23b42579d71d3932 /src
parent0923b0b56e631031461cc7bde56afb1dd8cad0de (diff)
Missed a spot when refactoring activeGroup
Change-Id: Ia6b884557876efb98ab1e0785102cd81de9bbbed Reviewed-on: http://codereview.qt-project.org/5966 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/particles/qsgparticleaffector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/particles/qsgparticleaffector.cpp b/src/declarative/particles/qsgparticleaffector.cpp
index 66cbba7395..62f5ccd670 100644
--- a/src/declarative/particles/qsgparticleaffector.cpp
+++ b/src/declarative/particles/qsgparticleaffector.cpp
@@ -208,7 +208,7 @@ bool QSGParticleAffector::affectParticle(QSGParticleData *, qreal )
void QSGParticleAffector::reset(QSGParticleData* pd)
{//TODO: This, among other ones, should be restructured so they don't all need to remember to call the superclass
if (m_onceOff)
- if (m_groups.isEmpty() || m_groupIds.contains(pd->group))
+ if (activeGroup(d->group))
m_onceOffed.remove(qMakePair(pd->group, pd->index));
}