Fixes 244767

Simple fix to a dumb mistake which prevented Sparkle from using the default application icon for bundles which didn't have one.
This commit is contained in:
Andy Matuschak committed 2008-07-03 22:24:01 -07:00
1 parent df0178e2de
commit c7881dec35
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@
iconPath = [self pathForResource:[self objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType: nil];
NSImage *icon = [[[NSImage alloc] initWithContentsOfFile:iconPath] autorelease];
// Use a default icon if none is defined.
if (!icon) { [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericApplicationIcon)]; }
if (!icon) { icon = [NSImage imageNamed:@"NSDefaultApplicationIcon"]; }
return icon;
}