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:
Fred Kiefer 2003-08-20 14:12:43 +00:00
parent b3f77ee1c5
commit 98da20e7b6

View file

@ -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;