diff --git a/src/qml/AccountData.qml b/src/qml/AccountData.qml index c3e65b90a..f422ff65f 100644 --- a/src/qml/AccountData.qml +++ b/src/qml/AccountData.qml @@ -23,7 +23,7 @@ ColumnLayout { model: root.connection.accountDataEventTypes delegate: FormCard.FormButtonDelegate { text: modelData - onClicked: applicationWindow().pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/MessageSourceSheet.qml", { + onClicked: applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'MessageSourceSheet.qml'), { sourceText: root.connection.accountDataJsonString(modelData) }, { title: i18nc("@title:window", "Event Source"), diff --git a/src/qml/StateKeys.qml b/src/qml/StateKeys.qml index f29093d9b..c10736fc6 100644 --- a/src/qml/StateKeys.qml +++ b/src/qml/StateKeys.qml @@ -31,7 +31,7 @@ FormCard.FormCardPage { delegate: FormCard.FormButtonDelegate { text: model.stateKey - onClicked: applicationWindow().pageStack.pushDialogLayer('qrc:/org/kde/neochat/qml/MessageSourceSheet.qml', { + onClicked: applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'MessageSourceSheet.qml'), { sourceText: stateKeysModel.stateEventJson(stateKeysModel.index(model.index, 0)) }, { title: i18nc("@title:window", "Event Source"),