summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-04-08 03:04:46 +0000
committerdynaflash <[email protected]>2008-04-08 03:04:46 +0000
commite009f2d3ebf27b8196b1ea5bd0545d49fab13274 (patch)
tree47b19553bafb8861bbdb6351dec323ed0585ac3a /macosx
parent9734e87d48f2d6c8b15453c5586a6422a9da5343 (diff)
MacGui: Fix errant encode done growl alert and send to MetaX function when finishing the first pass of a two pass encode.
- We now only send the alerts after an encode finishes as opposed to when a job *within* an encode finishes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1390 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBQueueController.mm23
1 files changed, 16 insertions, 7 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm
index 3e0668e24..555ba5cef 100644
--- a/macosx/HBQueueController.mm
+++ b/macosx/HBQueueController.mm
@@ -1758,15 +1758,24 @@ static NSString* HBQueuePauseResumeToolbarIdentifier = @"HBQueuePauseRe
* is released. So for the first job and the beginning of single encodes we check for the existence
* of a valid fCurrentJob jobGroup
*/
- if ([[fCurrentJob jobGroup] destinationPath] && [fCurrentJobGroup status] != HBStatusCanceled)
+ [currentJob retain];
+ /* We need to compare the job group to determine if this is the end of a job group
+ * or just the end of a job within a group to keep from sending encode done notification
+ * after the first pass in a two pass encode
+ */
+ HBJobGroup * theJobGroupCheck = [currentJob jobGroup];
+ if ((theJobGroupCheck == nil) || (theJobGroupCheck != fCurrentJobGroup))
{
- /* Try to send the growl notification destinationPath*/
- [fHBController showGrowlDoneNotification: [[fCurrentJob jobGroup] destinationPath]];
- /* Try to send the file to metax*/
- [fHBController sendToMetaX: [[fCurrentJob jobGroup] destinationPath]];
+ /* we need to make sure that we are not at the beginning of a queue and also that the job hasn't
+ * been cancelled
+ */
+ if ([[fCurrentJob jobGroup] destinationPath] && [fCurrentJobGroup status] != HBStatusCanceled)
+ {
+ /* send encode messages to fHBController. User prefs are grokked there. */
+ [fHBController showGrowlDoneNotification: [[fCurrentJob jobGroup] destinationPath]];
+ [fHBController sendToMetaX: [[fCurrentJob jobGroup] destinationPath]];
+ }
}
-
- [currentJob retain];
[fCurrentJob release];
fCurrentJob = currentJob;