Please sign in to comment.
Fixes two issues with the browser refresh
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.
- Loading branch information
Showing with 18 additions and 2 deletions.