Changeset 2022
- Timestamp:
- Jun 10, 2007, 4:13:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/file_selection/macosx/Torrent.m
r2021 r2022 1352 1352 - (void) setFileCheckState: (int) state forFileItem: (NSDictionary *) item 1353 1353 { 1354 #warning use index set1355 1354 if (![[item objectForKey: @"IsFolder"] boolValue]) 1356 tr_torrentSetFilePriority(fHandle, [[item objectForKey: @"Index"] intValue], 1357 state == NSOnState ? TR_PRI_NORMAL : TR_PRI_DND); 1355 { 1356 tr_priority_t actualPriority; 1357 if (state == NSOnState) 1358 { 1359 int priority = [[item objectForKey: @"Priority"] intValue]; 1360 if (priority == PRIORITY_HIGH) 1361 actualPriority = TR_PRI_HIGH; 1362 else if (priority == PRIORITY_LOW) 1363 actualPriority = TR_PRI_LOW; 1364 else 1365 actualPriority = TR_PRI_NORMAL; 1366 } 1367 else 1368 actualPriority = TR_PRI_DND; 1369 1370 tr_torrentSetFilePriority(fHandle, [[item objectForKey: @"Index"] intValue], actualPriority); 1371 } 1358 1372 else 1359 1373 {
Note: See TracChangeset
for help on using the changeset viewer.