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:
parent
94a329b38a
commit
26dba009db
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue