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:
parent
89023e8c41
commit
13a10b309a
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user