]> granicus.if.org Git - transmission/commitdiff
#3643 When saving a copy of the torrent file, don't allow the extension to be hidden
authorMitchell Livingston <livings124@transmissionbt.com>
Tue, 19 Oct 2010 00:01:31 +0000 (00:01 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Tue, 19 Oct 2010 00:01:31 +0000 (00:01 +0000)
macosx/Controller.m

index 46bee6fcc1781ca1296528c06889b9ea201768be..782ff03fe65559d445816cdd76e65443ce91a6c9 100644 (file)
@@ -1531,7 +1531,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     {
         NSSavePanel * panel = [NSSavePanel savePanel];
         [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
             didEndSelector: @selector(saveTorrentCopySheetClosed:returnCode:contextInfo:) contextInfo: torrents];