diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml index 514f7fdf0..815384296 100644 --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -5,6 +5,7 @@ */ import QtQuick +import QtCore import QtQuick.Controls as QQC2 import QtQuick.Layouts import QtQuick.Dialogs @@ -172,7 +173,7 @@ Kirigami.ScrollablePage { id: fileDialog readonly property var shareIface: root.currentDevice ? ShareDbusInterfaceFactory.create(root.currentDevice.id()) : null title: i18nd("kdeconnect-app", "Please choose a file") - currentFolder: shortcuts.home + currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0] onAccepted: shareIface.shareUrl(fileDialog.fileUrl) } } diff --git a/smsapp/qml/SendingArea.qml b/smsapp/qml/SendingArea.qml index ccee19798..119bb4acb 100644 --- a/smsapp/qml/SendingArea.qml +++ b/smsapp/qml/SendingArea.qml @@ -5,6 +5,7 @@ */ import QtQuick +import QtCore import QtQuick.Controls as Controls import QtQuick.Layouts import org.kde.kirigami as Kirigami @@ -31,7 +32,7 @@ ColumnLayout { FileDialog { id: fileDialog - currentFolder: shortcuts.home + currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0] fileMode: FileDialog.OpenFiles onAccepted: {