Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.1.1
-
None
Description
The FolderListModel component behaves incorrectly when a file gets appended to the end of the model. For example, if I'm watching a folder with two files, "alice" and "bob", an then create a file named "carol", the view attached to my FolderListModel will be updated to show "alice", "bob", and "bob".
The error is in FileInfoThread::findChangeRange(const QList<FileProperty> &list, int &fromIndex, int &toIndex). The return parameter "fromIndex" gets decremented when the change occurs at the end of the list. This is incorrect! Simply removing the "changeFound" condition solves the problem.
I'm currently using Qt 5.1.1 but this bug is still present in the latest 5.3 alpha.
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
-