use Filepath.stringToUrl instead of "file:///"+

This commit is contained in:
ChemicalXandco 2020-01-04 11:47:17 +00:00 committed by Fabien Castan
parent 4ddd25fb73
commit 5c279f3584

View file

@ -2,7 +2,6 @@ import QtQuick 2.7
import QtQuick.Controls 2.0 import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import MaterialIcons 2.2 import MaterialIcons 2.2
import Controls 1.0 import Controls 1.0
FocusScope { FocusScope {
@ -41,7 +40,7 @@ FocusScope {
if (type == "image") { if (type == "image") {
return root.source; return root.source;
} else { } else {
return "file:///"+_reconstruction.depthMap.internalFolder+_reconstruction.selectedViewId+"_"+type+".exr"; return Filepath.stringToUrl(_reconstruction.depthMap.internalFolder+_reconstruction.selectedViewId+"_"+type+".exr");
} }
} }