Changeset 8667


Ignore:
Timestamp:
Jun 10, 2009, 10:56:24 PM (13 years ago)
Author:
livings124
Message:

potentially (hopefully) fix bug where some users couldn't add torrents

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r8530 r8667  
    24572457        NSString * fullFile = [path stringByAppendingPathComponent: file];
    24582458       
    2459         if (![[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"])
     2459        if (![[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"]
     2460            || [[fullFile pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
    24602461            continue;
    24612462       
     
    26992700        for (NSString * file in files)
    27002701        {
    2701             if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"])
     2702            if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]
     2703                    || [[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
    27022704            {
    27032705                torrent = YES;
     
    27602762        for (NSString * file in files)
    27612763        {
    2762             if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"])
     2764            if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]
     2765                    || [[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
    27632766            {
    27642767                torrent = YES;
  • trunk/macosx/DragOverlayWindow.m

    r8499 r8667  
    8484    for (NSString * file in files)
    8585    {
    86         if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"])
     86        if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]
     87            || [[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
    8788        {
    8889            tr_ctor * ctor = tr_ctorNew(fLib);
  • trunk/macosx/Torrent.m

    r8548 r8667  
    16421642            result = tr_ctorSetMetainfoFromFile(ctor, [path UTF8String]);
    16431643       
    1644         //backup - shouldn't be needed after upgrade to 1.62
     1644        //backup - shouldn't be needed after upgrade to 1.70
    16451645        if (result != TR_OK && hashString)
    16461646            result = tr_ctorSetMetainfoFromHash(ctor, [hashString UTF8String]);
Note: See TracChangeset for help on using the changeset viewer.