Packager, InstallPkgSetDialog: fix a crash caused by OnIdle handler which was not removed

git-svn-id: trunk@31099 -
This commit is contained in:
juha 2011-06-05 14:59:04 +00:00
parent 353c186df3
commit 0345459ac3

View File

@ -346,8 +346,10 @@ procedure TInstallPkgSetDialog.SetIdleConnected(const AValue: boolean);
begin
if FIdleConnected=AValue then exit;
FIdleConnected:=AValue;
if IdleConnected then
Application.AddOnIdleHandler(@OnIdle);
if FIdleConnected then
Application.AddOnIdleHandler(@OnIdle)
else
Application.RemoveOnIdleHandler(@OnIdle);
end;
procedure TInstallPkgSetDialog.SetOldInstalledPackages(