1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix double file:// prefix in qml

This commit is contained in:
Dominik Louven 2018-11-26 22:28:57 +01:00
parent caad10aafa
commit a0dc8efd75
2 changed files with 3 additions and 3 deletions

View File

@ -139,14 +139,14 @@ Item {
id: screenPlayItemImage
anchors.fill: parent
sourceImage: Qt.resolvedUrl(
"file:///" + screenPlayItem.absoluteStoragePath
screenPlayItem.absoluteStoragePath
+ "/" + screenPreview)
sourceImageGIF: {
if (screenPreviewGIF === undefined) {
return ""
} else {
return Qt.resolvedUrl(
"file:///" + screenPlayItem.absoluteStoragePath
screenPlayItem.absoluteStoragePath
+ "/" + screenPreviewGIF)
}

View File

@ -24,7 +24,7 @@ Item {
onActiveScreenChanged: {
txtHeadline.text = installedListModel.get(activeScreen).screenTitle
image.source = Qt.resolvedUrl(
"file:///" + installedListModel.absoluteStoragePath + "/"
installedListModel.absoluteStoragePath + "/"
+ activeScreen + "/" + installedListModel.get(
activeScreen).screenPreview)
}