1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

another switch

This commit is contained in:
Mitchell Livingston 2007-10-20 19:38:10 +00:00
parent b85c64d635
commit 197e94910f

View file

@ -52,16 +52,23 @@
//only for when clicking manually
int priority;
if (segment == 0)
priority = TR_PRI_LOW;
else if (segment == 2)
priority = TR_PRI_HIGH;
else
priority = TR_PRI_NORMAL;
switch (segment)
{
case 0:
priority = TR_PRI_LOW;
break;
case 1:
priority = TR_PRI_NORMAL;
break;
case 2:
priority = TR_PRI_HIGH;
break;
}
Torrent * torrent = [(FileOutlineView *)[self controlView] torrent];
FileOutlineView * controlView = (FileOutlineView *)[self controlView];
Torrent * torrent = [controlView torrent];
[torrent setFilePriority: priority forIndexes: [[self representedObject] objectForKey: @"Indexes"]];
[(FileOutlineView *)[self controlView] reloadData];
[controlView reloadData];
}
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView