diff options
author | dynaflash <[email protected]> | 2008-01-17 14:39:34 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-01-17 14:39:34 +0000 |
commit | 98d3cb4c680aca24e434384aff277bae9a16f660 (patch) | |
tree | 640b1cc6bad3a784ce9ffdd668e26f6d3fe01d4a /macosx | |
parent | 972d270429037d5bd6dd4ce66f79f028af335f1b (diff) |
MacGui: small tweak to check for duplicate output file before adding to the queue. patch courtesy of travistex.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1207 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 0a4a2d89f..30f0f0487 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -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, |