From 97f382bee8101a3815939839934d1a898e8aa507 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 16 Mar 2021 03:29:24 +0300 Subject: Pass eventEmitter to ChatlistPage as property --- qml/AccountsPage.qml | 2 +- qml/ChatlistPage.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'qml') diff --git a/qml/AccountsPage.qml b/qml/AccountsPage.qml index 7f23776..0088777 100644 --- a/qml/AccountsPage.qml +++ b/qml/AccountsPage.qml @@ -110,7 +110,7 @@ Kirigami.Page { dcAccounts.selectAccount(model.number) let context = dcAccounts.getSelectedAccount() if (context.isConfigured()) { - pageStack.replace("qrc:/qml/ChatlistPage.qml", {context: context}) + pageStack.replace("qrc:/qml/ChatlistPage.qml", {context: context, eventEmitter: eventEmitter}) } else { pageStack.replace("qrc:/qml/ConfigurePage.qml", {context: context, eventEmitter: eventEmitter}) } diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index a5bc1ed..d095025 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -11,6 +11,7 @@ Kirigami.ScrollablePage { id: chatlistPage required property DcContext context + required property DcAccountsEventEmitter eventEmitter signal messagesChanged onMessagesChanged: { -- cgit v1.2.3-70-g09d2