From 6079da1472683f192c5ed05b0e1d01601f4800f2 Mon Sep 17 00:00:00 2001 From: Dominik Louven Date: Fri, 27 Mar 2020 15:01:42 +0100 Subject: [PATCH] Fix project.json path not converting to localfile properly --- ScreenPlay/src/screenplaymanager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ScreenPlay/src/screenplaymanager.cpp b/ScreenPlay/src/screenplaymanager.cpp index 045ecba2..ef2d764b 100644 --- a/ScreenPlay/src/screenplaymanager.cpp +++ b/ScreenPlay/src/screenplaymanager.cpp @@ -49,10 +49,8 @@ void ScreenPlayManager::createWallpaper( if (m_telemetry) { m_telemetry->sendEvent("wallpaper", "start"); } - QString path = absoluteStoragePath; - if (absoluteStoragePath.contains("file:///")) - path = path.remove("file:///"); + QString path = QUrl(absoluteStoragePath).toLocalFile(); std::sort(monitorIndex.begin(), monitorIndex.end());