Changeset 389


Ignore:
Timestamp:
Jun 18, 2006, 3:40:11 AM (16 years ago)
Author:
livings124
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r388 r389  
    4141#define TOOLBAR_RESUME_SELECTED @"Toolbar Resume Selected"
    4242
    43 #define WEBSITE_URL         @"http://transmission.m0k.org/"
    44 #define FORUM_URL           @"http://transmission.m0k.org/forum/"
    45 #define VERSION_PLIST_URL   @"http://transmission.m0k.org/version.plist"
     43#define WEBSITE_URL @"http://transmission.m0k.org/"
     44#define FORUM_URL   @"http://transmission.m0k.org/forum/"
    4645
    4746#define GROWL_PATH  @"/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app"
     
    265264                ? @"There is an active transfer. Do you really want to quit?"
    266265                : [NSString stringWithFormat:
    267                     @"There are %d active transfers. Do you really want to quit?",
    268                     active];
     266                    @"There are %d active transfers. Do you really want to quit?", active];
    269267
    270268            NSBeginAlertSheet(@"Confirm Quit",
     
    347345    BOOL autoStart = [fDefaults boolForKey: @"AutoStartDownload"];
    348346   
    349     NSString * downloadChoice = [fDefaults stringForKey: @"DownloadChoice"],
    350             * torrentPath;
     347    NSString * downloadChoice = [fDefaults stringForKey: @"DownloadChoice"], * torrentPath;
    351348    Torrent * torrent;
    352349    NSEnumerator * enumerator = [filenames objectEnumerator];
     
    381378        {
    382379            NSString * folder = [downloadChoice isEqualToString: @"Constant"]
    383                                 ? [[fDefaults stringForKey: @"DownloadFolder"]
    384                                         stringByExpandingTildeInPath]
    385                                 : [torrentPath stringByDeletingLastPathComponent];
     380                ? [[fDefaults stringForKey: @"DownloadFolder"] stringByExpandingTildeInPath]
     381                : [torrentPath stringByDeletingLastPathComponent];
    386382
    387383            [torrent setDownloadFolder: folder];
     
    571567    }
    572568    else
    573     {
    574         [self confirmRemove: torrents
    575             deleteData: deleteData deleteTorrent: deleteTorrent];
    576     }
     569        [self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent];
    577570}
    578571
     
    588581   
    589582    if (returnCode == NSAlertDefaultReturn)
    590     {
    591         [self confirmRemove: torrents
    592             deleteData: deleteData deleteTorrent: deleteTorrent];
    593     }
     583        [self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent];
    594584    else
    595585        [torrents release];
     
    14141404{
    14151405    NSRect windowRect = [fWindow frame];
    1416     int count = [fTorrents count];
    14171406    float newHeight = windowRect.size.height - [fScrollView frame].size.height
    1418             + count * ([fTableView rowHeight] + [fTableView intercellSpacing].height) + 30.0;
     1407        + [fTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height) + 30.0;
    14191408
    14201409    float minHeight = [fWindow minSize].height;
Note: See TracChangeset for help on using the changeset viewer.