mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 01:18:15 +02:00
fixed Idle handler when no unit is open
git-svn-id: trunk@7568 -
This commit is contained in:
parent
577379f6ec
commit
bca60bcb66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user