From aa3093790518c08277f4acdda9de303213f63c65 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Tue, 3 Oct 2023 10:17:41 +0200 Subject: [PATCH] smsapp: Fix wrong QML connection for plaing/displaying media --- smsapp/qml/MessageAttachments.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smsapp/qml/MessageAttachments.qml b/smsapp/qml/MessageAttachments.qml index 0296571f8..f0e59a074 100644 --- a/smsapp/qml/MessageAttachments.qml +++ b/smsapp/qml/MessageAttachments.qml @@ -135,9 +135,9 @@ Item { Connections { target: conversationModel - function onFilePathReceived() { + function onFilePathReceived(filePath, fileName) { if (root.uniqueIdentifier == fileName && root.sourcePath == "") { - root.sourcePath = "file:" + filePath + root.sourcePath = "file://" + filePath if (root.mimeType.match("audio")) { audioPlayer.source = root.sourcePath