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
This commit is contained in:
FredKiefer 2003-08-20 14:12:43 +00:00
parent 140b5c370f
commit ea0c4b58ef

View file

@ -2320,9 +2320,7 @@ resetCursorRectsForView(NSView *theView)
{ {
NSDocument *document = [_windowController document]; NSDocument *document = [_windowController document];
if (document && (document != _delegate) if (document && ![document shouldCloseWindowController: _windowController])
&& [document respondsToSelector: @selector(windowShouldClose:)]
&& ![document windowShouldClose: self])
{ {
NSBeep(); NSBeep();
return; return;