From 2cd01164a6eec1f0669df4061c14885bfab8de54 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Thu, 17 Nov 2022 18:16:46 +0800 Subject: [PATCH] add missing QQC2s --- src/qml/Menu/Timeline/FileDelegateContextMenu.qml | 2 +- src/qml/RoomSettings/General.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/Menu/Timeline/FileDelegateContextMenu.qml b/src/qml/Menu/Timeline/FileDelegateContextMenu.qml index 05a96ae6b..00597c49d 100644 --- a/src/qml/Menu/Timeline/FileDelegateContextMenu.qml +++ b/src/qml/Menu/Timeline/FileDelegateContextMenu.qml @@ -41,7 +41,7 @@ MessageDelegateContextMenu { text: i18n("Save As") icon.name: "document-save" onTriggered: { - var dialog = saveAsDialog.createObject(ApplicationWindow.overlay) + var dialog = saveAsDialog.createObject(QQC2.ApplicationWindow.overlay) dialog.open() dialog.currentFile = dialog.folder + "/" + currentRoom.fileNameToDownload(eventId) } diff --git a/src/qml/RoomSettings/General.qml b/src/qml/RoomSettings/General.qml index 4ea8e2e80..7ff0bf66f 100644 --- a/src/qml/RoomSettings/General.qml +++ b/src/qml/RoomSettings/General.qml @@ -40,7 +40,7 @@ Kirigami.ScrollablePage { Accessible.name: i18n("Update avatar") enabled: canChangeAvatar onClicked: { - const fileDialog = openFileDialog.createObject(ApplicationWindow.overlay) + const fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.overlay) fileDialog.chosen.connect(function(path) { if (!path) return