Solve issue with FolderDialog
FolderDialog has issues retrieving the selected folder if that folder has been selected through xdg-desktop-portal (i.e. flatpaks). Reverting to FileDialog from QtQuick.Dialogs. BUG: 443956
This commit is contained in:
parent
2455e543fe
commit
5b15f4c7b9
@ -7,8 +7,8 @@
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import Qt.labs.platform 1.1
|
||||
import QtQuick.Layouts 1.14
|
||||
import QtQuick.Dialogs 1.3
|
||||
|
||||
import org.kde.kirigami 2.12 as Kirigami
|
||||
|
||||
@ -173,13 +173,13 @@ Kirigami.ScrollablePage {
|
||||
enabled: !defaultStoragePath.checked
|
||||
onClicked: storagePathDialog.open()
|
||||
}
|
||||
FolderDialog {
|
||||
FileDialog {
|
||||
id: storagePathDialog
|
||||
title: i18n("Select Storage Path")
|
||||
currentFolder: "file://" + StorageManager.storagePath
|
||||
options: FolderDialog.ShowDirsOnly
|
||||
selectFolder: true
|
||||
folder: "file://" + StorageManager.storagePath
|
||||
onAccepted: {
|
||||
StorageManager.setStoragePath(folder);
|
||||
StorageManager.setStoragePath(fileUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user