diff options
author | ritsuka <[email protected]> | 2014-12-27 12:26:17 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-27 12:26:17 +0000 |
commit | 25d0cf9b7f554c3899ce0173f5a29a6092ad7cd7 (patch) | |
tree | 7404bd142cd8127b6a86c06f77deb3356fc7d77d /macosx | |
parent | c3fe7309bf40db5d522e88af3248124c1ac30874 (diff) |
MacGui: fix the reveal button in the queue.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6659 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBQueueController.mm | 24 |
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"]]; } } } |