-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters