diff options
Diffstat (limited to 'src/declarative/util/qmlstate.cpp')
-rw-r--r-- | src/declarative/util/qmlstate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp index c05c539..5fde89a 100644 --- a/src/declarative/util/qmlstate.cpp +++ b/src/declarative/util/qmlstate.cpp @@ -161,6 +161,9 @@ QmlState::QmlState(QObject *parent) QmlState::~QmlState() { + Q_D(QmlState); + if (d->group) + d->group->removeState(this); } /*! |