diff --git a/example/qml/page/T_Http.qml b/example/qml/page/T_Http.qml index 6eeff28a..385f5397 100644 --- a/example/qml/page/T_Http.qml +++ b/example/qml/page/T_Http.qml @@ -1,5 +1,5 @@ import QtQuick -import QtCore +import Qt.labs.platform import QtQuick.Layouts import QtQuick.Window import QtQuick.Controls @@ -120,7 +120,7 @@ FluScrollablePage{ id: file_dialog currentFolder: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0] onAccepted: { - var path = selectedFolder.toString().replace("file:///","") + "/big_buck_bunny.mp4" + var path = currentFolder.toString().replace(FluTools.isMacos() ? "file://" : "file:///","") + "/big_buck_bunny.mp4" http_download.download(path) } }