1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-16 00:39:34 +00:00

don't access NSArrays using subscripts, since that requires the modern runtime

This commit is contained in:
Mitchell Livingston 2013-01-26 19:42:41 +00:00
parent 94a329b38a
commit 26dba009db

View file

@ -1746,7 +1746,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
{
NSArray * selected = [fTableView selectedTorrents];
NSAssert([selected count] == 1, @"1 transfer needs to be selected to rename, but %ld are selected", [selected count]);
Torrent * torrent = selected[0];
Torrent * torrent = [selected objectAtIndex:0];
[FileRenameSheetController presentSheetForTorrent:torrent modalForWindow: fWindow completionHandler: ^(BOOL didRename) {
if (didRename)