A bit of a workaround for the weird behavior of adding a file extension when saving a torrent copy.

This commit is contained in:
Mitchell Livingston 2006-07-06 02:29:05 +00:00
parent de20500392
commit 59ddd1f75c
1 changed files with 2 additions and 4 deletions

View File

@ -700,13 +700,11 @@ static void sleepCallBack(void * controller, io_service_t y,
{
NSSavePanel * panel = [NSSavePanel savePanel];
[panel setRequiredFileType: @"torrent"];
[panel setCanSelectHiddenExtension: NO];
[panel setExtensionHidden: NO];
[panel setCanSelectHiddenExtension: YES];
[panel beginSheetForDirectory: nil file: [torrent name]
modalForWindow: fWindow modalDelegate: self didEndSelector:
@selector( saveTorrentCopySheetClosed:returnCode:contextInfo: )
contextInfo: torrents];
@selector(saveTorrentCopySheetClosed:returnCode:contextInfo:) contextInfo: torrents];
}
}