mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:50:49 +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
140b5c370f
commit
ea0c4b58ef
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue