Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.1
-
None
Description
qt.labs.folderlistmodel:
change 'folder' will not free old 'folder', it looks like it still watch old 'folder', which result in:
we can't eject removable usb storage.
after checked the src code, I found that removePath and setPath used different parameter, maybe they should all use 'd->currentDir.path()' or all use resolved path as parameter:
void QQuickFolderListModel::setFolder(const QUrl &folder)
{
......
QString resolvedPath = QQuickFolderListModelPrivate::resolvePath(folder);
.......
d->fileInfoThread.removePath(d->currentDir.path());
d->currentDir = folder;
......
d->fileInfoThread.setPath(resolvedPath);
}
Attachments
Issue Links
- is required for
-
QTBUG-32039 FolderListModel needs to have API review, fix some API warts and be a maintained API instead of Qt.labs
-
- Reported
-