Do not discard close requests for a window in a modal session when the

window has -worksWhenModal==YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31653 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-11-26 16:07:19 +00:00
parent 6d47950759
commit 449c4f8af6
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2010-11-26 Wolfgang Lux <wolfgang.lux@gmail.com>>
* Source/NSWindow.m (-performClose:): Do not discard close
requests for a window in a modal session when the window has
-worksWhenModal==YES.
2010-11-22 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTextView_actions.m (-deleteBackward:): Add missing

View file

@ -1768,7 +1768,7 @@ many times.
aString = [NSString stringWithFormat: @"%@ -- %@",
[_representedFilename lastPathComponent],
[_representedFilename stringByDeletingLastPathComponent]];
[_representedFilename stringByDeletingLastPathComponent]];
isFileName = [_windowTitle isEqual: aString];
[NSApp addWindowsItem: self
@ -2860,7 +2860,11 @@ resetCursorRectsForView(NSView *theView)
/* Don't close if a modal session is running and we are not the
modal window */
if ([NSApp modalWindow] && self != [NSApp modalWindow])
return;
{
/* Panel that work in modal session can be closed nevertheless */
if (![self worksWhenModal])
return;
}
/* self must have a close button in order to be closed */
if (!(_styleMask & NSClosableWindowMask))