Ignore:
Timestamp:
Jan 23, 2010, 12:36:18 AM (12 years ago)
Author:
livings124
Message:

fix magnet links when app is closed that I broke in r9996

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9996 r9998  
    328328        [NSApp setDelegate: self];
    329329       
     330        //register for magnet URLs (has to be in init)
     331        [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
     332            forEventClass: kInternetEventClass andEventID: kAEGetURL];
     333       
    330334        fTorrents = [[NSMutableArray alloc] init];
    331335        fDisplayedTorrents = [[NSMutableArray alloc] init];
     
    574578    [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
    575579        forEventClass: kCoreEventClass andEventID: kAEOpenContents];
    576    
    577     //register for magnet URLs
    578     [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
    579         forEventClass: kInternetEventClass andEventID: kAEGetURL];
    580580   
    581581    //auto importing
Note: See TracChangeset for help on using the changeset viewer.