mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
1. endless loop when a sqlite-based layer is opened, and wal+shm files are created. This triggers a loop because the directoryChanged signal is emitted again and again ... This was the real blocker. 2. when a new files appears in a directory the directoryChanged is emitted and OGR/GDAL may fail to open the file because the file copy was not yet finished. This commit fixes 1 but the fix for 2 is only a best effort using a 100 ms timer: I could not find a definitive solution to this issue, a file could be legitimately opened in streaming mode and it will always triggers an error, there is apparently no way to get the QFileSystemWatcher emit a signal when new files are closed flusehd and not when they are just created.