mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: When renaming file on Linux fileCreated, fileDeleted events were swapped (bug [0000357]).
This commit is contained in:
parent
93e61ab46b
commit
2f94e0223f
1 changed files with 3 additions and 3 deletions
|
|
@ -654,13 +654,13 @@ begin
|
|||
EventType := fswFileChanged;
|
||||
end
|
||||
else if (ev^.mask and (IN_CREATE or
|
||||
IN_MOVED_FROM)) <> 0 then
|
||||
IN_MOVED_TO)) <> 0 then
|
||||
begin
|
||||
EventType := fswFileCreated;
|
||||
end
|
||||
else if (ev^.mask and (IN_DELETE or
|
||||
IN_DELETE_SELF or
|
||||
IN_MOVED_TO)) <> 0 then
|
||||
IN_MOVED_FROM)) <> 0 then
|
||||
begin
|
||||
EventType := fswFileDeleted;
|
||||
end
|
||||
|
|
@ -1391,4 +1391,4 @@ finalization
|
|||
TFileSystemWatcher.DestroyFileSystemWatcher;
|
||||
|
||||
end.
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue