Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
-
Windows 10 64-bit
Description
Hello,
I have started to receive bug reports from users about incorrect work of my app. For some reason, code that worked perfectly fine started to act really strange.
To react on change in files, I watch them with QFileSystemWatcher. Additionally, on Windows I enable qt_ntfs_permission_lookup when work with file. And this combination started to work incorrectly. The watcher emits fileChanged for paths I don't watch. This mess with the logic of the app. It forces my app thinks that file was updated, when in reality it doesn't.
I have prepared a simple test project to show three cases.
If we do not use qt_ntfs_permission_lookup, it works as expected. But if to use at least in one case it messes all three watchers even if they watch different paths in separate folders.