From 49c2e8f83015f464dc940f5a06b94f7c6a9c6b6b Mon Sep 17 00:00:00 2001 From: EndrII Date: Sat, 16 May 2020 17:01:38 +0300 Subject: [PATCH] fix error logs --- .../src/ViewSolutionsModule/ViewPortDelegatBase.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ViewSolutions/src/ViewSolutionsModule/ViewPortDelegatBase.qml b/ViewSolutions/src/ViewSolutionsModule/ViewPortDelegatBase.qml index c8b8e0a..98a96b6 100644 --- a/ViewSolutions/src/ViewSolutionsModule/ViewPortDelegatBase.qml +++ b/ViewSolutions/src/ViewSolutionsModule/ViewPortDelegatBase.qml @@ -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;