Merge PR #197: Fix the crash when opening and closing tabs

This commit is contained in:
Jenkins 2019-06-06 03:20:57 +02:00
commit fb609d32ba

View File

@ -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) {