fixed: CPDocument sends windowWillClose: message twice

This commit is contained in:
daboe01
2025-12-07 11:28:53 +01:00
parent e02107102c
commit f3fe384df1
+1 -1
View File
@@ -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);
}