summaryrefslogtreecommitdiff
path: root/USearch.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-03 18:24:22 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-03 18:24:22 +0200
commit0654e549d1f8252deb9c598b19299e0c599f5fec (patch)
tree92f3a1a443e9ad678331eb26c274cd775c256212 /USearch.pas
parent00c70c7bf0f07e3f525fc56497abb3b1a505bc41 (diff)
downloadtuxcmd-0654e549d1f8252deb9c598b19299e0c599f5fec.tar.xz
Search: make GoTo File function work properly inside non-local engine
Diffstat (limited to 'USearch.pas')
-rw-r--r--USearch.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/USearch.pas b/USearch.pas
index eb609c3..4339f5e 100644
--- a/USearch.pas
+++ b/USearch.pas
@@ -81,6 +81,7 @@ type
TSearchThread = class(TThread)
private
FEngine: TPanelEngine;
+ FRootEngine: TPanelEngine;
Wilds: array of string;
GUIMutex: TCriticalSection;
procedure Rekurze(StartDir: string);
@@ -850,6 +851,7 @@ begin
FSearchArchives := False;
FEngine := Engine;
+ FRootEngine := Engine;
FList := TList.Create;
end;
@@ -974,7 +976,8 @@ begin
libc_free(PDataItem(LocalList[i])^.LnkPointTo);
PDataItem(LocalList[i])^.LnkPointTo := nil;
end;
- if FEngine is TVFSEngine then PDataItem(LocalList[i])^.LnkPointTo := strdup(PChar((FEngine as TVFSEngine).SavePath));
+ if (FEngine is TVFSEngine) and (FRootEngine <> FEngine)
+ then PDataItem(LocalList[i])^.LnkPointTo := strdup(PChar((FEngine as TVFSEngine).SavePath));
GUIMutex.Release;
end;