From 13a10b309a066a5d391f1567e23fb048ceeb7b39 Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Wed, 22 Aug 2012 09:00:29 +1000 Subject: [PATCH] Fixed segfault when ScrollDecorator is destroyed looks like the qt declarative bug, as a workaround unset the source componet on destruction. --- .../openpilotgcs/src/plugins/welcome/qml/ScrollDecorator.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ground/openpilotgcs/src/plugins/welcome/qml/ScrollDecorator.qml b/ground/openpilotgcs/src/plugins/welcome/qml/ScrollDecorator.qml index a393690ae..24c79c927 100644 --- a/ground/openpilotgcs/src/plugins/welcome/qml/ScrollDecorator.qml +++ b/ground/openpilotgcs/src/plugins/welcome/qml/ScrollDecorator.qml @@ -6,9 +6,12 @@ Rectangle { property Flickable flickableItem: null Loader { + id: scrollLoader sourceComponent: scrollDecorator.flickableItem ? scrollBar : undefined } + Component.onDestruction: scrollLoader.sourceComponent = undefined + Component { id: scrollBar Rectangle {