summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--resources/qml/RoomList.qml4
1 files 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);
                     }
                 }