aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsglistview.cpp
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-09-29 14:57:25 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-29 15:01:13 +0200
commitbc2f2c56296a77b215ccdf2ee907ef669e6ab609 (patch)
tree9c956c87ccbfeceebcdc89ebc9b8ca5a13c54647 /src/declarative/items/qsglistview.cpp
parentb3a2d206e6f3fe99b9cda6ea06e510e92cf275da (diff)
Don't crash when QSGViewSection has a null parent.
This is required to make qmlplugindump work. Change-Id: I041adde3e48759f9c3ae166c887a26ccb8f264f9 Reviewed-on: http://codereview.qt-project.org/5800 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/items/qsglistview.cpp')
-rw-r--r--src/declarative/items/qsglistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsglistview.cpp b/src/declarative/items/qsglistview.cpp
index b38c682e0e..4aaf131ece 100644
--- a/src/declarative/items/qsglistview.cpp
+++ b/src/declarative/items/qsglistview.cpp
@@ -175,7 +175,7 @@ public:
QSGViewSection::QSGViewSection(QSGListView *parent)
: QObject(parent), m_criteria(FullString), m_delegate(0), m_labelPositioning(InlineLabels)
- , m_view(QSGListViewPrivate::get(parent))
+ , m_view(parent ? QSGListViewPrivate::get(parent) : 0)
{
}