1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

#3643 When saving a copy of the torrent file, don't allow the extension to be hidden

This commit is contained in:
Mitchell Livingston 2010-10-19 00:01:31 +00:00
parent d365c40958
commit 458f2d603f

View file

@ -1531,7 +1531,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
{ {
NSSavePanel * panel = [NSSavePanel savePanel]; NSSavePanel * panel = [NSSavePanel savePanel];
[panel setAllowedFileTypes: [NSArray arrayWithObjects: @"org.bittorrent.torrent", @"torrent", nil]]; [panel setAllowedFileTypes: [NSArray arrayWithObjects: @"org.bittorrent.torrent", @"torrent", nil]];
[panel setCanSelectHiddenExtension: YES]; [panel setExtensionHidden: NO];
[panel beginSheetForDirectory: nil file: [torrent name] modalForWindow: fWindow modalDelegate: self [panel beginSheetForDirectory: nil file: [torrent name] modalForWindow: fWindow modalDelegate: self
didEndSelector: @selector(saveTorrentCopySheetClosed:returnCode:contextInfo:) contextInfo: torrents]; didEndSelector: @selector(saveTorrentCopySheetClosed:returnCode:contextInfo:) contextInfo: torrents];