From 9cc440eb5bf56b16ef6ea4bf2061f57d0c4b4e4a Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 16 Mar 2021 03:30:00 +0300 Subject: Pass context and eventEmitter to ChatPage as properties --- qml/ChatlistPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qml/ChatlistPage.qml') diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index d095025..dfc41f0 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -111,7 +111,7 @@ Kirigami.ScrollablePage { console.log("Depth is " + pageStack.depth) let chatPageComponent = Qt.createComponent("qrc:/qml/ChatPage.qml") if (chatPageComponent.status == Component.Ready) { - let myPage = chatPageComponent.createObject(chatlistPage, {chatId: chatId}) + let myPage = chatPageComponent.createObject(chatlistPage, {chatId: chatId, context: chatlistPage.context, eventEmitter: chatlistPage.eventEmitter}) if (pageStack.depth == 1) { pageStack.push(myPage) } else if (pageStack.depth == 2) { -- cgit v1.2.3-70-g09d2