mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
b3f77ee1c5
commit
98da20e7b6
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue