mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-08 17:46:08 +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
|
if AnIDesigner is TDesigner then begin
|
||||||
MainIDEBar.ToggleFormSpeedBtn.Enabled:=true;
|
MainIDEBar.ToggleFormSpeedBtn.Enabled:=true;
|
||||||
end else begin
|
end else begin
|
||||||
MainIDEBar.ToggleFormSpeedBtn.Enabled:=AnUnitInfo.HasResources;
|
MainIDEBar.ToggleFormSpeedBtn.Enabled:=(AnUnitInfo<>nil)
|
||||||
|
and AnUnitInfo.HasResources;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user