A bit of a workaround for the weird behavior of adding a file extension when saving a torrent copy.
This commit is contained in:
parent
de20500392
commit
59ddd1f75c
|
@ -700,13 +700,11 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
{
|
{
|
||||||
NSSavePanel * panel = [NSSavePanel savePanel];
|
NSSavePanel * panel = [NSSavePanel savePanel];
|
||||||
[panel setRequiredFileType: @"torrent"];
|
[panel setRequiredFileType: @"torrent"];
|
||||||
[panel setCanSelectHiddenExtension: NO];
|
[panel setCanSelectHiddenExtension: YES];
|
||||||
[panel setExtensionHidden: NO];
|
|
||||||
|
|
||||||
[panel beginSheetForDirectory: nil file: [torrent name]
|
[panel beginSheetForDirectory: nil file: [torrent name]
|
||||||
modalForWindow: fWindow modalDelegate: self didEndSelector:
|
modalForWindow: fWindow modalDelegate: self didEndSelector:
|
||||||
@selector( saveTorrentCopySheetClosed:returnCode:contextInfo: )
|
@selector(saveTorrentCopySheetClosed:returnCode:contextInfo:) contextInfo: torrents];
|
||||||
contextInfo: torrents];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue