Changeset 9406


Ignore:
Timestamp:
Oct 25, 2009, 7:29:30 PM (13 years ago)
Author:
livings124
Message:

get rid of 2 more warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9391 r9406  
    17821782        }
    17831783       
    1784         #warning dataLocation could return nil
    1785         NSDictionary * clickContext = [NSDictionary dictionaryWithObjectsAndKeys: GROWL_DOWNLOAD_COMPLETE, @"Type",
    1786                                         [torrent dataLocation] , @"Location", nil];
     1784        NSMutableDictionary * clickContext = [NSMutableDictionary dictionaryWithObject: GROWL_DOWNLOAD_COMPLETE forKey: @"Type"];
     1785       
     1786        NSString * location = [torrent dataLocation];
     1787        if (location)
     1788            [clickContext setObject: location forKey: @"Location"];
     1789       
    17871790        [GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Download Complete", "Growl notification title")
    17881791                                    description: [torrent name] notificationName: GROWL_DOWNLOAD_COMPLETE
     
    18441847    }
    18451848   
    1846     #warning dataLocation could return nil
    1847     NSDictionary * clickContext = [NSDictionary dictionaryWithObjectsAndKeys: GROWL_SEEDING_COMPLETE, @"Type",
    1848                                     [torrent dataLocation], @"Location", nil];
     1849    NSMutableDictionary * clickContext = [NSMutableDictionary dictionaryWithObject: GROWL_SEEDING_COMPLETE forKey: @"Type"];
     1850   
     1851    NSString * location = [torrent dataLocation];
     1852    if (location)
     1853        [clickContext setObject: location forKey: @"Location"];
     1854   
    18491855    [GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Seeding Complete", "Growl notification title")
    18501856                        description: [torrent name] notificationName: GROWL_SEEDING_COMPLETE
Note: See TracChangeset for help on using the changeset viewer.