From ea672abae6d9d94f801b7790adfde6548500c2bc Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 3 Jun 2019 20:29:29 +0200 Subject: [PATCH] initial stab on debugging the tabs crash --- nymea-app/ui/RootItem.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nymea-app/ui/RootItem.qml b/nymea-app/ui/RootItem.qml index 60e85991..61706e45 100644 --- a/nymea-app/ui/RootItem.qml +++ b/nymea-app/ui/RootItem.qml @@ -70,12 +70,9 @@ Item { id: mainRepeater model: tabModel - delegate: StackView { - id: pageStack + delegate: Item { height: swipeView.height width: swipeView.width - objectName: "pageStack" - initialItem: Page {} property var tabSettings: Settings { category: "tabSettings" + index @@ -103,6 +100,13 @@ Item { value: engine.connection.currentHost === null } + StackView { + id: pageStack + objectName: "pageStack" + anchors.fill: parent + initialItem: Page {} + } + Component.onCompleted: { setupPushNotifications(); if (autoConnectHost.length > 0) {