summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBQueueController.mm24
1 files changed, 11 insertions, 13 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm
index 82bc7d83f..e566532b7 100644
--- a/macosx/HBQueueController.mm
+++ b/macosx/HBQueueController.mm
@@ -420,8 +420,8 @@
{
while (row != NSNotFound)
{
- NSMutableDictionary *queueItemToOpen = [fOutlineView itemAtRow: row];
- [[NSWorkspace sharedWorkspace] selectFile:queueItemToOpen[@"DestinationPath"] inFileViewerRootedAtPath:nil];
+ HBJob *queueItemToOpen = [fOutlineView itemAtRow:row];
+ [[NSWorkspace sharedWorkspace] selectFile:queueItemToOpen.destURL.path inFileViewerRootedAtPath:nil];
row = [targetedRow indexGreaterThanIndex: row];
}
@@ -1106,7 +1106,7 @@
BOOL highlighted = [outlineView isRowSelected:[outlineView rowForItem: item]] && [[outlineView window] isKeyWindow] && ([[outlineView window] firstResponder] == outlineView);
HBJob *job = item;
- if (job.state == HBJobStateWorking && job.pidId != pidNum)
+ if (job.state == HBJobStateCompleted)
{
[cell setAction: @selector(revealSelectedQueueItem:)];
if (highlighted)
@@ -1119,16 +1119,14 @@
}
else
{
-
- [cell setAction: @selector(removeSelectedQueueItem:)];
- if (highlighted)
- {
- [cell setImage:[NSImage imageNamed:@"DeleteHighlight"]];
- [cell setAlternateImage:[NSImage imageNamed:@"DeleteHighlightPressed"]];
- }
- else
- [cell setImage:[NSImage imageNamed:@"Delete"]];
-
+ [cell setAction: @selector(removeSelectedQueueItem:)];
+ if (highlighted)
+ {
+ [cell setImage:[NSImage imageNamed:@"DeleteHighlight"]];
+ [cell setAlternateImage:[NSImage imageNamed:@"DeleteHighlightPressed"]];
+ }
+ else
+ [cell setImage:[NSImage imageNamed:@"Delete"]];
}
}
}