disabled test button during run

git-svn-id: trunk@6576 -
This commit is contained in:
mattias 2005-01-13 20:58:51 +00:00
parent d7a61074f1
commit 407a9f452a

View File

@ -450,7 +450,14 @@ procedure TfrmCompilerOptions.ButtonCheckClicked(Sender: TObject);
begin
// Apply any changes and test
PutCompilerOptions;
if Assigned(OnTest) then OnTest(CompilerOpts);
if Assigned(OnTest) then begin
btnCheck.Enabled:=false;
try
OnTest(CompilerOpts);
finally
btnCheck.Enabled:=true;
end;
end;
end;
{------------------------------------------------------------------------------