Ignore:
Timestamp:
Nov 26, 2009, 2:11:00 AM (13 years ago)
Author:
livings124
Message:

some more tweaks for magnet links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9561 r9577  
    11311131    NSString * urlString = [fURLSheetTextField stringValue];
    11321132   
    1133     if ([urlString compare: @"magnet:" options: (NSAnchoredSearch | NSCaseInsensitiveSearch)])
     1133    if ([urlString rangeOfString: @"magnet:" options: (NSAnchoredSearch | NSCaseInsensitiveSearch)].location != NSNotFound)
    11341134        [self openMagnet: urlString];
    11351135    else
     
    11511151        }
    11521152       
    1153        
    1154         else
    1155         {
    1156             NSURL * url = [NSURL URLWithString: urlString];
    1157             [self performSelectorOnMainThread: @selector(openURL:) withObject: url waitUntilDone: NO];
    1158         }
     1153        NSURL * url = [NSURL URLWithString: urlString];
     1154        [self performSelectorOnMainThread: @selector(openURL:) withObject: url waitUntilDone: NO];
    11591155    }
    11601156}
Note: See TracChangeset for help on using the changeset viewer.