OSDN Git Service

MacGui: small tweak to check for duplicate output file before adding to the queue...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 17 Jan 2008 14:39:34 +0000 (14:39 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 17 Jan 2008 14:39:34 +0000 (14:39 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1207 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 0a4a2d8..30f0f04 100644 (file)
@@ -1698,7 +1698,8 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
     }
     
     // Warn if another pending job in the queue has the same destination path
-    else if ([fQueueController pendingJobGroupWithDestinationPath:[fDstFile2Field stringValue]] != nil)
+    else if ( ([fQueueController pendingJobGroupWithDestinationPath:[fDstFile2Field stringValue]] != nil)
+            || ([[[fQueueController currentJobGroup] destinationPath] isEqualToString: [fDstFile2Field stringValue]]) )
     {
         NSBeginCriticalAlertSheet( _( @"Another queued encode has specified the same destination." ),
             _( @"Cancel" ), _( @"Overwrite" ), NULL, fWindow, self,