From bc2f2c56296a77b215ccdf2ee907ef669e6ab609 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 29 Sep 2011 14:57:25 +0200 Subject: [PATCH] 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 --- src/declarative/items/qsglistview.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/declarative/items/qsglistview.cpp b/src/declarative/items/qsglistview.cpp index b38c682..4aaf131 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) { } -- 1.7.2.5