Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6
-
None
Description
The "setFolder" method of FolderListModel in Qt.labs.folderlistmodel has a conditional endResetModel:
void QQuickFolderListModel::setFolder(const QUrl &folder) { Q_D(QQuickFolderListModel); if (folder == d->currentDir) return; QString resolvedPath = QQuickFolderListModelPrivate::resolvePath(folder); qCDebug(lcFolderListModel) << "about to emit beginResetModel since our folder was set to" << folder; beginResetModel(); //Remove the old path for the file system watcher if (!d->currentDir.isEmpty()) d->fileInfoThread.removePath(d->currentDir.path()); d->currentDir = folder; QFileInfo info(resolvedPath); if (!info.exists() || !info.isDir()) { d->data.clear(); endResetModel(); emit rowCountChanged(); if (d->status != QQuickFolderListModel::Null) { d->status = QQuickFolderListModel::Null; emit statusChanged(); } return; } d->fileInfoThread.setPath(resolvedPath); }
Not sure if this is intentional or not, but looked weird.