fix error logs

This commit is contained in:
Andrei Yankovich 2020-05-16 17:01:38 +03:00
parent 3b8cbe4710
commit 49c2e8f830

View File

@ -70,7 +70,7 @@ Item {
if (background !== flickable.backgroundOld) {
if (flickable.backgroundOld) {
flickable.backgroundOld.destroy()
flickable.backgroundOld.parent = null
}
background.parent = this;
@ -83,7 +83,8 @@ Item {
if (bloor !== flickable.bloorOld) {
if (flickable.bloorOld) {
flickable.bloorOld.destroy()
flickable.bloorOld.parent = null
}
bloor.parent = this;
bloor.anchors.fill = this;
@ -94,7 +95,8 @@ Item {
if (content !== flickable.contentOld) {
if (flickable.contentOld) {
flickable.contentOld.destroy()
flickable.contentOld.parent = null
}
content.parent = this;
content.anchors.fill = this;