smsapp: Fix "Open with default" button

One does not let QML auto-convert string to URL.
This commit is contained in:
ivan tkachenko 2024-04-19 21:49:02 +06:00
parent 1d7af9a05f
commit e65c0d9baa
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -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}`))
}
}
]