summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicsrepeater.cpp')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsrepeater.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp b/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
index 48758a7..7aed760 100644
--- a/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
@@ -266,8 +266,10 @@ void QmlGraphicsRepeater::clear()
{
Q_D(QmlGraphicsRepeater);
if (d->model) {
- foreach (QmlGraphicsItem *item, d->deletables)
+ foreach (QmlGraphicsItem *item, d->deletables) {
+ item->setParentItem(this);
d->model->release(item);
+ }
}
d->deletables.clear();
}