summaryrefslogtreecommitdiff
path: root/src/controls/ScrollView.qml
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-03-22 20:14:58 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-23 09:54:44 +0100
commitf36f562a0e58f4ea371bd3732e8de5cfbe8e59ba (patch)
treeb32044b89b1e1d0e24469afa37e5df053d4baf33 /src/controls/ScrollView.qml
parentadf5a5b48ee4895558d5288cf1355c626d82b4f9 (diff)
downloadqtquickcontrols-f36f562a0e58f4ea371bd3732e8de5cfbe8e59ba.tar.gz
ScrollView: Fix crash on exit
Reproducible with the gallery example application, Launch it, select the TextField, and quit the application. The following short example also reproduces the crash in the same way, but selecting the TextInput instead. import QtQuick 2.1 import QtQuick.Window 2.1 import QtQuick.Controls 1.0 Window { property bool blah: !!activeFocusItem && !!activeFocusItem["copy"] Column { TextInput { width: 200 height: 30 } TextArea { width: 200 height: 200 } } } Whether the real cause is in ScrollView or deeper in QtQuick is yet to be throughly investigated. But, hey, that's one crash less right now. Change-Id: Idf358775b8b0333261ecfec7a2fefd3c5b931cc8 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/ScrollView.qml')
-rw-r--r--src/controls/ScrollView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml
index 6bdc7c2a..b0722e0f 100644
--- a/src/controls/ScrollView.qml
+++ b/src/controls/ScrollView.qml
@@ -147,7 +147,7 @@ FocusScope {
contentItem.hasOwnProperty("contentHeight")) {
internal.flickableItem = contentItem // "Use content if it is a flickable
} else {
- internal.flickableItem = flickableComponent.createObject(this)
+ internal.flickableItem = flickableComponent.createObject(internal)
contentItem.parent = internal.flickableItem.contentItem
}
internal.flickableItem.parent = viewportItem