display a console message if setting default magnet link app fails

This commit is contained in:
Mitchell Livingston
2009-12-05 15:42:14 +00:00
parent 5756097288
commit 65b8835e1f
2 changed files with 3 additions and 1 deletions

View File

@@ -692,6 +692,8 @@ tr_session * fHandle;
{
NSString * bundleID = [[NSBundle mainBundle] bundleIdentifier];
const OSStatus result = LSSetDefaultHandlerForURLScheme((CFStringRef)@"magnet", (CFStringRef)bundleID);
if (result != noErr)
NSLog(@"Failed setting default magnet link handler");
}
- (void) setQueue: (id) sender