mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Long delay with locked network path
(cherry picked from commit 7d90b0852f)
This commit is contained in:
parent
c522743f98
commit
c9767b6e68
1 changed files with 12 additions and 5 deletions
|
|
@ -2617,13 +2617,20 @@ begin
|
|||
if Assigned(APage) and (APage.LockState <> tlsNormal) then
|
||||
begin
|
||||
if not mbCompareFileNames(FHistory.CurrentPath, APage.LockPath) then
|
||||
begin
|
||||
FileSourceClass:= gVfsModuleList.GetFileSource(APage.LockPath);
|
||||
if Assigned(FileSourceClass) then aFileSource := FileSourceClass.Create;
|
||||
FHistory.Add(aFileSource, APage.LockPath);
|
||||
end;
|
||||
end;
|
||||
if TFileSystemFileSource.ClassNameIs(aFileSource.ClassName) then
|
||||
begin
|
||||
// Go to upper directory if current doesn't exist
|
||||
sPath := GetDeepestExistingPath(FHistory.CurrentPath);
|
||||
if Length(sPath) = 0 then sPath := mbGetCurrentDir;
|
||||
if not mbCompareFileNames(sPath, FHistory.CurrentPath) then
|
||||
FHistory.Add(aFileSource, sPath);
|
||||
end;
|
||||
// Go to upper directory if current doesn't exist
|
||||
sPath := GetDeepestExistingPath(FHistory.CurrentPath);
|
||||
if Length(sPath) = 0 then sPath := mbGetCurrentDir;
|
||||
if not mbCompareFileNames(sPath, FHistory.CurrentPath) then
|
||||
FHistory.Add(aFileSource, sPath);
|
||||
end;
|
||||
|
||||
if Assigned(aFileSource) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue