Changeset 1116 for trunk


Ignore:
Timestamp:
Nov 22, 2006, 1:06:31 AM (15 years ago)
Author:
livings124
Message:

some more fixes with url dragging and url download error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1115 r1116  
    499499            @"Download not a torrent -> title"), [NSString stringWithFormat:
    500500            NSLocalizedString(@"It appears that the file \"%@\" from %@ is not a torrent file.",
    501             @"Download not a torrent -> message"), suggestedName, [[[download request] URL] absoluteString]],
     501            @"Download not a torrent -> message"), suggestedName,
     502            [[[[download request] URL] absoluteString] stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding]],
    502503            NSLocalizedString(@"OK", @"Download not a torrent -> button"), nil, nil);
    503504       
     
    520521        @"Torrent download error -> title"), [NSString stringWithFormat:
    521522        NSLocalizedString(@"The torrent could not be downloaded from %@ because an error occurred (%@).",
    522         @"Torrent download failed -> message"), [[[download request] URL] absoluteString],
     523        @"Torrent download failed -> message"),
     524        [[[[download request] URL] absoluteString] stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding],
    523525        [error localizedDescription]], NSLocalizedString(@"OK", @"Torrent download failed -> button"), nil, nil);
    524526   
     
    18411843        [filesToOpen release];
    18421844    }
    1843    
    1844     if ([[pasteboard types] containsObject: NSURLPboardType])
     1845    else if ([[pasteboard types] containsObject: NSURLPboardType])
    18451846    {
    18461847        NSURL * url;
     
    18481849            [self openURL: url];
    18491850    }
    1850    
    1851     if ([[pasteboard types] containsObject: TORRENT_TABLE_VIEW_DATA_TYPE])
     1851    else if ([[pasteboard types] containsObject: TORRENT_TABLE_VIEW_DATA_TYPE])
    18521852    {
    18531853        //remember selected rows if needed
     
    19011901        }
    19021902    }
     1903    else;
    19031904   
    19041905    return YES;
Note: See TracChangeset for help on using the changeset viewer.