diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-03-08 08:23:16 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-03-11 08:56:41 +0000 |
commit | e8b3db1bedf1c62f810d26d17ce91a687448bcc4 (patch) | |
tree | b7d98e475637afe081b39d7d74747d93d945f30b /src/quicktemplates2/qquickpage_p_p.h | |
parent | 08ceb93cf16dcdc771935ac66e6c4b5ce02ec36d (diff) |
Fix SplitView crash when using certain attached propertiesv5.13.0-beta1
If the attached property object was created on an item that SplitView
doesn't manage, then its m_splitView member will be null, so check
for that.
Sometimes, an attached SplitView object will be created on an item
that SplitView _does_ manage, but SplitView's own contentItem hasn't
been created yet (see the comment in the QQuickSplitViewAttached
constructor). In that case the SplitView will see the item added
as a child of its contentItem eventually, and we just have to wait.
While we are waiting, check access to our members in case they are
null.
Fixes: QTBUG-74276
Change-Id: I70b7f017e621e0d15c239b962f0407743eb70b15
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpage_p_p.h')
0 files changed, 0 insertions, 0 deletions