diff --git a/AppKit/CPDocument.j b/AppKit/CPDocument.j index 8770d57aa..e4a9d696b 100644 --- a/AppKit/CPDocument.j +++ b/AppKit/CPDocument.j @@ -874,7 +874,7 @@ var CPDocumentUntitledCount = 0; if (aDocument === self && shouldClose) [self close]; - if (theDelegate != null) + else if (theDelegate != null) theDelegate.isa.objj_msgSend3(theDelegate, context.selector, aDocument, shouldClose, context.context); }