From 51c09e014277a7d873fc159cdd41b0e06d034b95 Mon Sep 17 00:00:00 2001 From: Ming Rui Zhang Date: Mon, 16 Aug 2021 09:51:10 -0400 Subject: [PATCH] filesToSendDelegate: use js startsWith to check qt resource url Gitlab: #492 Change-Id: I67c9c1eafe29ce8d8a150af2b914a15f9c74d7f2 --- src/mainview/components/FilesToSendDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainview/components/FilesToSendDelegate.qml b/src/mainview/components/FilesToSendDelegate.qml index 9b73e6cee..fbfbbff74 100644 --- a/src/mainview/components/FilesToSendDelegate.qml +++ b/src/mainview/components/FilesToSendDelegate.qml @@ -103,7 +103,7 @@ Rectangle { // :/ -> resource url for test purposes var sourceUrl = FilePath - if (!sourceUrl.includes(":/")) + if (!sourceUrl.startsWith(":/")) return JamiQmlUtils.qmlFilePrefix + sourceUrl else return "qrc" + sourceUrl