Changeset 4228


Ignore:
Timestamp:
Dec 19, 2007, 9:45:14 PM (15 years ago)
Author:
livings124
Message:

fix crash on Tiger caused by a placeholder image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r4227 r4228  
    21182118    int index = [fDefaults integerForKey: @"FilterGroup"];
    21192119   
    2120     NSImage * icon;
     2120    NSImage * icon = nil;
    21212121    if (index >= 0)
    21222122        icon = [[GroupsWindowController groupsController] imageForIndex: index isSmall: YES];
    21232123    else
    2124         icon = [NSImage imageNamed: NSImageNameRemoveTemplate];
     2124    {
     2125        if ([NSApp isOnLeopardOrBetter])
     2126            icon = [NSImage imageNamed: NSImageNameRemoveTemplate];
     2127    }
    21252128    [[fGroupFilterMenu itemAtIndex: 0] setImage: icon];
    21262129   
Note: See TracChangeset for help on using the changeset viewer.