mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-12 21:20:31 +01:00
IDE: open lpk: always resolve symlinks in lpk filename, because package directory is used as working directory for fpc
git-svn-id: trunk@45249 -
This commit is contained in:
parent
62828003be
commit
67dd475567
@ -48,7 +48,7 @@ uses
|
|||||||
contnrs, StringHashList, Translations, LResources,
|
contnrs, StringHashList, Translations, LResources,
|
||||||
// codetools
|
// codetools
|
||||||
CodeToolsConfig, CodeToolManager, CodeCache, CodeToolsStructs, BasicCodeTools,
|
CodeToolsConfig, CodeToolManager, CodeCache, CodeToolsStructs, BasicCodeTools,
|
||||||
FileProcs, Laz2_XMLCfg, lazutf8classes, LazFileUtils,
|
FileProcs, Laz2_XMLCfg, lazutf8classes, LazFileUtils, LazFileCache,
|
||||||
// IDE Interface
|
// IDE Interface
|
||||||
SrcEditorIntf, NewItemIntf, ProjectIntf, PackageIntf, CompOptsIntf,
|
SrcEditorIntf, NewItemIntf, ProjectIntf, PackageIntf, CompOptsIntf,
|
||||||
MenuIntf, IDEWindowIntf, PropEdits, MacroIntf, LazIDEIntf,
|
MenuIntf, IDEWindowIntf, PropEdits, MacroIntf, LazIDEIntf,
|
||||||
@ -2245,7 +2245,7 @@ begin
|
|||||||
if not GlobalMacroList.SubstituteStr(AFilename) then exit(mrCancel);
|
if not GlobalMacroList.SubstituteStr(AFilename) then exit(mrCancel);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
AFilename:=CleanAndExpandFilename(AFilename);
|
AFilename:=GetPhysicalFilenameCached(CleanAndExpandFilename(AFilename),false);
|
||||||
|
|
||||||
// check file extension
|
// check file extension
|
||||||
if (CompareFileExt(AFilename,'.lpk',false)<>0)
|
if (CompareFileExt(AFilename,'.lpk',false)<>0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user