diff options
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r-- | macosx/HBPreferencesController.m | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m index 4e335ee69..544387dee 100644 --- a/macosx/HBPreferencesController.m +++ b/macosx/HBPreferencesController.m @@ -180,16 +180,15 @@ { if( returnCode == NSOKButton ) { - NSString *sendToAppPath = [[sheet filenames] objectAtIndex: 0]; - NSString *sendToAppDirectory = [sendToAppPath stringByDeletingLastPathComponent]; - [[NSUserDefaults standardUserDefaults] setObject:sendToAppDirectory forKey:@"LastSendToAppDirectory"]; + NSURL *sendToAppURL = [[sheet URLs] objectAtIndex: 0]; + NSURL *sendToAppDirectory = [sendToAppURL URLByDeletingLastPathComponent]; + [[NSUserDefaults standardUserDefaults] setObject:[sendToAppDirectory path] forKey:@"LastSendToAppDirectory"]; [sheet orderOut: self]; NSString *sendToAppName; - sendToAppName = [[sendToAppPath lastPathComponent] stringByDeletingPathExtension]; + sendToAppName = [[sendToAppURL lastPathComponent] stringByDeletingPathExtension]; /* we set the name of the app to send to in the display field */ [fSendEncodeToAppField setStringValue:sendToAppName]; [[NSUserDefaults standardUserDefaults] setObject:[fSendEncodeToAppField stringValue] forKey:@"SendCompletedEncodeToApp"]; - } } |