diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-24 11:43:08 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-24 11:43:08 +0000 |
commit | c392e4606e7270ced607ec13a0fa8600c71ce773 (patch) | |
tree | c7dbf80259c6913fb663fffbd411bed1eccb865d /cocoa | |
parent | 6b26f77bb17c92294824f252491d93ee4811f4b4 (diff) | |
download | netsurf-c392e4606e7270ced607ec13a0fa8600c71ce773.tar.gz netsurf-c392e4606e7270ced607ec13a0fa8600c71ce773.tar.bz2 |
Get filename for downloads from core.
svn path=/trunk/netsurf/; revision=11784
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/DownloadWindowController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/DownloadWindowController.m b/cocoa/DownloadWindowController.m index 1c525b58c..6cb50202a 100644 --- a/cocoa/DownloadWindowController.m +++ b/cocoa/DownloadWindowController.m @@ -83,7 +83,7 @@ static void cocoa_register_download( DownloadWindowController *download ); { canClose = NO; [[NSSavePanel savePanel] beginSheetForDirectory: nil - file: [[url path] lastPathComponent] + file: [NSString stringWithUTF8String: download_context_get_filename( context )] modalForWindow: [self window] modalDelegate: self didEndSelector: @selector(savePanelDidEnd:returnCode:contextInfo:) |