mirror of https://gitlab.com/basile.b/dexed.git
fix #22, hang with some rel paths in DUB projs
This commit is contained in:
parent
166bca0f14
commit
1d3c14c000
|
@ -615,10 +615,10 @@ begin
|
||||||
for i := 0 to arr.Count-1 do
|
for i := 0 to arr.Count-1 do
|
||||||
begin
|
begin
|
||||||
pth := TrimRightSet(arr.Strings[i], ['/','\']);
|
pth := TrimRightSet(arr.Strings[i], ['/','\']);
|
||||||
if pth.dirExists then
|
if pth.dirExists and FilenameIsAbsolute(pth) then
|
||||||
tryAddFromFolder(pth)
|
tryAddFromFolder(pth)
|
||||||
else
|
else
|
||||||
tryAddFromFolder(fBasePath + pth);
|
tryAddFromFolder(expandFilenameEx(fBasePath, pth));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
// custom files
|
// custom files
|
||||||
|
@ -643,10 +643,10 @@ begin
|
||||||
for i := 0 to arr.Count-1 do
|
for i := 0 to arr.Count-1 do
|
||||||
begin
|
begin
|
||||||
pth := TrimRightSet(arr.Strings[i], ['/','\']);
|
pth := TrimRightSet(arr.Strings[i], ['/','\']);
|
||||||
if pth.dirExists then
|
if pth.dirExists and FilenameIsAbsolute(pth) then
|
||||||
tryAddFromFolder(pth)
|
tryAddFromFolder(pth)
|
||||||
else
|
else
|
||||||
tryAddFromFolder(fBasePath + pth);
|
tryAddFromFolder(expandFilenameEx(fBasePath, pth));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
// custom files in current config
|
// custom files in current config
|
||||||
|
|
Loading…
Reference in New Issue