Commit a8840ec4 authored by Gabriel de Dietrich's avatar Gabriel de Dietrich Committed by The Qt Project
Browse files

ScrollView: Improve "Crash on exit" patch

This saves a parent change when creating the flickable item.
Partially amends f36f562a

.

Change-Id: I2f76ea329c86e8754712b97cd87e41f56c791183
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent 1d6b43c4
Branches
Tags
No related merge requests found
Showing with 2 additions and 2 deletions
......@@ -146,11 +146,11 @@ FocusScope {
if (contentItem.hasOwnProperty("contentY") && // Check if flickable
contentItem.hasOwnProperty("contentHeight")) {
internal.flickableItem = contentItem // "Use content if it is a flickable
internal.flickableItem.parent = viewportItem
} else {
internal.flickableItem = flickableComponent.createObject(internal)
internal.flickableItem = flickableComponent.createObject(viewportItem)
contentItem.parent = internal.flickableItem.contentItem
}
internal.flickableItem.parent = viewportItem
internal.flickableItem.anchors.fill = viewportItem
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment