mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 17:10:56 +00:00
Source/NSWindow.m ([NSWindow -close]): ignore the call if the window
is already closed git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12558 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f81e8e1bc2
commit
632eaef8bc
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-02-18 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||||
|
|
||||||
|
* Source/NSWindow.m ([NSWindow -close]): ignore the call if the
|
||||||
|
window is already closed.
|
||||||
|
|
||||||
2002-02-17 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
2002-02-17 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||||
|
|
||||||
* Source/NSApplication.m ([NSApplication -terminate:]): send a
|
* Source/NSApplication.m ([NSApplication -terminate:]): send a
|
||||||
|
|
|
@ -2023,6 +2023,12 @@ resetCursorRectsForView(NSView *theView)
|
||||||
*/
|
*/
|
||||||
- (void) close
|
- (void) close
|
||||||
{
|
{
|
||||||
|
if (_f.has_closed == YES)
|
||||||
|
{
|
||||||
|
// already closed
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CREATE_AUTORELEASE_POOL(pool);
|
CREATE_AUTORELEASE_POOL(pool);
|
||||||
|
|
||||||
[nc postNotificationName: NSWindowWillCloseNotification object: self];
|
[nc postNotificationName: NSWindowWillCloseNotification object: self];
|
||||||
|
@ -2042,11 +2048,6 @@ resetCursorRectsForView(NSView *theView)
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
NSWarnMLog(@"closing window (%@) that's already closed.", self);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Private Method. Many X Window managers will just deminiaturize us without
|
/* Private Method. Many X Window managers will just deminiaturize us without
|
||||||
|
|
Loading…
Reference in a new issue