IDE: fixed Create project from file if file was open in editor

git-svn-id: trunk@21718 -
This commit is contained in:
mattias 2009-09-15 21:50:42 +00:00
parent 3d9c73bf02
commit 2cd6fe9f38

View File

@ -9087,6 +9087,9 @@ begin
end;
end;
// reload file (if the file was open in the IDE, closeproject unloaded it)
ProgramBuf.Reload;
// switch codetools to new project directory
CodeToolBoss.GlobalValues.Variables[ExternalMacroStart+'ProjPath']:=
ExpandFileNameUTF8(ExtractFilePath(ProgramBuf.Filename));