IDE: Prevent an occasional crash after BuildModes are added and deleted.

git-svn-id: trunk@52628 -
This commit is contained in:
juha 2016-07-05 11:16:54 +00:00
parent cf8074ffe7
commit 865cb9dc42

View File

@ -5082,7 +5082,8 @@ end;
procedure TProject.SetActiveBuildMode(const AValue: TProjectBuildMode);
begin
if FActiveBuildMode=AValue then exit;
// Must be set even if FActiveBuildMode=AValue. Modes may be added and deleted,
// the same old address can be used by a new mode.
FActiveBuildMode:=AValue;
if FActiveBuildMode<>nil then
FLazCompilerOptions:=FActiveBuildMode.CompilerOptions