From ea0c4b58effbddd588eebf6017ae634847da85d1 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Wed, 20 Aug 2003 14:12:43 +0000 Subject: [PATCH] In [performClose:] call the method [shouldCloseWindowController:] on the document instead of [windowShouldClose:] git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17508 72102866-910b-0410-8b05-ffd578937521 --- Source/NSWindow.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 93993e015..5f61c891d 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -2320,9 +2320,7 @@ resetCursorRectsForView(NSView *theView) { NSDocument *document = [_windowController document]; - if (document && (document != _delegate) - && [document respondsToSelector: @selector(windowShouldClose:)] - && ![document windowShouldClose: self]) + if (document && ![document shouldCloseWindowController: _windowController]) { NSBeep(); return;