Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.8
-
None
Description
the folderDialog of QtQuick.Dialogs will display symlink to file under /dev/block,
and if we select it, the application will crash at:
void QQuickFileDialogDelegatePrivate::chooseFile() { ... Q_ASSERT(fileDialog); }
maybe we should provide flags as FileDialog to skip symlink, or like regular file, filter out symlink to file. example code:
import QtQuick import QtQuick.Controls import QtQuick.Dialogs ApplicationWindow { width: 480 height: 272 visible: true title: "test FolderDialog" Button { text: "folder" onClicked: { dlgSaveDir.open() } } FolderDialog { id: dlgSaveDir currentFolder: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0] onAccepted: { console.log("set folder to: " + selectedFolder) saveModel.url = selectedFolder } } }