fixed Idle handler when no unit is open

git-svn-id: trunk@7568 -
This commit is contained in:
mattias 2005-08-25 18:21:27 +00:00
parent 577379f6ec
commit bca60bcb66

View File

@ -11230,7 +11230,8 @@ begin
if AnIDesigner is TDesigner then begin
MainIDEBar.ToggleFormSpeedBtn.Enabled:=true;
end else begin
MainIDEBar.ToggleFormSpeedBtn.Enabled:=AnUnitInfo.HasResources;
MainIDEBar.ToggleFormSpeedBtn.Enabled:=(AnUnitInfo<>nil)
and AnUnitInfo.HasResources;
end;
end;
end;