From ee1a219661476721749f1ad534f82124da2fdea2 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 1 Nov 2022 14:56:23 +0100 Subject: [PATCH] Fix search rooms button --- resources/qml/RoomList.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index cfc0e215..b64df669 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -775,9 +775,9 @@ Page { ToolTip.text: qsTr("Search rooms (Ctrl+K)") Layout.margins: Nheko.paddingMedium onClicked: { - var quickSwitch = quickSwitcherComponent.createObject(timelineRoot); + var quickSwitch = Qt.createComponent("qrc:/qml/QuickSwitcher.qml").createObject(timelineRoot); quickSwitch.open(); - timelineRoot.destroyOnClose(quickSwitch); + destroyOnClosed(quickSwitch); } }