smsapp: Fix wrong QML connection for plaing/displaying media
This commit is contained in:
parent
d7df67ce0a
commit
aa30937905
1 changed files with 2 additions and 2 deletions
|
@ -135,9 +135,9 @@ Item {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: conversationModel
|
target: conversationModel
|
||||||
function onFilePathReceived() {
|
function onFilePathReceived(filePath, fileName) {
|
||||||
if (root.uniqueIdentifier == fileName && root.sourcePath == "") {
|
if (root.uniqueIdentifier == fileName && root.sourcePath == "") {
|
||||||
root.sourcePath = "file:" + filePath
|
root.sourcePath = "file://" + filePath
|
||||||
|
|
||||||
if (root.mimeType.match("audio")) {
|
if (root.mimeType.match("audio")) {
|
||||||
audioPlayer.source = root.sourcePath
|
audioPlayer.source = root.sourcePath
|
||||||
|
|
Loading…
Reference in a new issue