don't show priority colors for finished files

This commit is contained in:
Mitchell Livingston
2007-06-22 01:16:50 +00:00
parent e087ac395a
commit ab4a1cd2f7
3 changed files with 10 additions and 3 deletions

View File

@@ -75,7 +75,8 @@
if (![self isRowSelected: row])
{
NSDictionary * item = [self itemAtRow: row];
if ([[item objectForKey: @"IsFolder"] boolValue])
if ([[item objectForKey: @"IsFolder"] boolValue]
|| ![[item objectForKey: @"Torrent"] canChangeDownloadCheckForFiles: [item objectForKey: @"Indexes"]])
[fNormalColor set];
else
{
@@ -108,7 +109,8 @@
if ([self isRowSelected: i])
{
item = [self itemAtRow: i];
if (![[item objectForKey: @"IsFolder"] boolValue])
if (![[item objectForKey: @"IsFolder"] boolValue]
&& [[item objectForKey: @"Torrent"] canChangeDownloadCheckForFiles: [item objectForKey: @"Indexes"]])
{
priority = [[item objectForKey: @"Priority"] intValue];
if (priority == PRIORITY_HIGH)