mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:59:21 +02:00
IDE: fixed Create project from file if file was open in editor
git-svn-id: trunk@21718 -
This commit is contained in:
parent
3d9c73bf02
commit
2cd6fe9f38
@ -9087,6 +9087,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// reload file (if the file was open in the IDE, closeproject unloaded it)
|
||||||
|
ProgramBuf.Reload;
|
||||||
|
|
||||||
// switch codetools to new project directory
|
// switch codetools to new project directory
|
||||||
CodeToolBoss.GlobalValues.Variables[ExternalMacroStart+'ProjPath']:=
|
CodeToolBoss.GlobalValues.Variables[ExternalMacroStart+'ProjPath']:=
|
||||||
ExpandFileNameUTF8(ExtractFilePath(ProgramBuf.Filename));
|
ExpandFileNameUTF8(ExtractFilePath(ProgramBuf.Filename));
|
||||||
|
Loading…
Reference in New Issue
Block a user