From e65c0d9baa0c545cd7ca90125de4f24e96a30a26 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Fri, 19 Apr 2024 21:49:02 +0600 Subject: [PATCH] smsapp: Fix "Open with default" button One does not let QML auto-convert string to URL. --- smsapp/qml/AttachmentViewer.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsapp/qml/AttachmentViewer.qml b/smsapp/qml/AttachmentViewer.qml index 7885dfa81..55d80c70f 100644 --- a/smsapp/qml/AttachmentViewer.qml +++ b/smsapp/qml/AttachmentViewer.qml @@ -20,7 +20,7 @@ Kirigami.Page { text: i18nd("kdeconnect-sms", "Open with default") icon.name: "window-new" onTriggered: { - Qt.openUrlExternally(filePath); + Qt.openUrlExternally(Qt.url(`file://${filePath}`)) } } ]