summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/Controller.mm3
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,