aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgpathview.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-07-27 16:25:38 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-28 05:14:47 +0200
commit44e58a337a9c314d4542ee6f2acc571aba877ccb (patch)
tree1d071eee1f47d269b68bcac039e90d89e1ada854 /src/declarative/items/qsgpathview.cpp
parent3b3a997cfaf24d18202ebda263d04629956738e8 (diff)
Delete scene if you aren't going to use it.
Also make QDeclarativeOpenMetaObjectType zero its engine when the engine dies, because this was leading to problems when the scene wasn't deleted. Also fixes a few other potential deletion problems. Change-Id: I37fa2d1a0b438a6ea7d8cf4c5c9d0bd869faa959 Reviewed-on: http://codereview.qt.nokia.com/2250 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgpathview.cpp')
-rw-r--r--src/declarative/items/qsgpathview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsgpathview.cpp b/src/declarative/items/qsgpathview.cpp
index 68ed319069..7dd58c55f3 100644
--- a/src/declarative/items/qsgpathview.cpp
+++ b/src/declarative/items/qsgpathview.cpp
@@ -398,7 +398,7 @@ void QSGPathView::setModel(const QVariant &model)
d->model = vim;
} else {
if (!d->ownModel) {
- d->model = new QSGVisualDataModel(qmlContext(this), this);
+ d->model = new QSGVisualDataModel(qmlContext(this));
d->ownModel = true;
}
if (QSGVisualDataModel *dataModel = qobject_cast<QSGVisualDataModel*>(d->model))