dont rebuild imagelist cache on application exit

git-svn-id: trunk@13027 -
This commit is contained in:
paul 2007-11-26 02:01:48 +00:00
parent 47ab9233e4
commit 60f9fecfd1

View File

@ -29,7 +29,7 @@ unit ImageListCache;
interface
uses
Classes, SysUtils, Graphics, ImgList, LCLProc;
Classes, SysUtils, Graphics, ImgList, LCLProc, Forms;
type
// interface that cache user should have to listen for cache changes
@ -109,7 +109,7 @@ end;
procedure TImageListCache.CheckRebuildNeed;
begin
if FObsoletedCount >= ImageListCacheRebuildThreashold then
if (FObsoletedCount >= ImageListCacheRebuildThreashold) and not Application.Terminated then
Rebuild;
end;