1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Fixed segfault when ScrollDecorator is destroyed

looks like the qt declarative bug, as a workaround
unset the source componet on destruction.
This commit is contained in:
Dmytro Poplavskiy 2012-08-22 09:00:29 +10:00
parent 89023e8c41
commit 13a10b309a

View File

@ -6,9 +6,12 @@ Rectangle {
property Flickable flickableItem: null property Flickable flickableItem: null
Loader { Loader {
id: scrollLoader
sourceComponent: scrollDecorator.flickableItem ? scrollBar : undefined sourceComponent: scrollDecorator.flickableItem ? scrollBar : undefined
} }
Component.onDestruction: scrollLoader.sourceComponent = undefined
Component { Component {
id: scrollBar id: scrollBar
Rectangle { Rectangle {