hopefully the dock amount-completed badging is more consistent

This commit is contained in:
Mitchell Livingston 2007-07-04 19:34:21 +00:00
parent a283f4ffad
commit f4439ee4bf
1 changed files with 5 additions and 3 deletions

View File

@ -173,9 +173,11 @@
//update dock badge
if (baseChange || fSpeedBadge || speedChange)
{
[NSApp setApplicationIconImage: dockIcon ? dockIcon : fDockIcon];
if (dockIcon)
[dockIcon release];
//copy to avoid badge not being cleared
if (!dockIcon)
dockIcon = [fDockIcon copy];
[NSApp setApplicationIconImage: dockIcon];
[dockIcon release];
fSpeedBadge = speedChange;
}