IDE: do not free package while compiling

git-svn-id: trunk@36469 -
This commit is contained in:
mattias 2012-03-30 16:06:41 +00:00
parent 24f1d64edb
commit f7921aef89

View File

@ -960,9 +960,10 @@ end;
procedure TPkgManager.OnApplicationIdle(Sender: TObject; var Done: Boolean);
begin
if PackageGraph = nil then Exit;
if MainIDE.ToolStatus<>itNone then exit;
if (Screen.ActiveCustomForm<>nil)
and (fsModal in Screen.ActiveCustomForm.FormState) then exit;
if PackageGraph = nil then Exit;
PackageGraph.CloseUnneededPackages;
end;