More fixes for NSApplication

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5255 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-11-22 15:52:52 +00:00
parent ab191734b3
commit 6561a2fbfb
2 changed files with 8 additions and 3 deletions

View file

@ -742,8 +742,11 @@ static NSCell* tileCell = nil;
* The NSWindow documentation says runModalForWindow centers panels.
*/
if ([theWindow isKindOfClass: [NSPanel class]])
[theWindow center];
{
[theWindow center];
}
[theWindow orderFrontRegardless];
if ([self isActive] == YES)
{
if ([theWindow canBecomeKeyWindow] == YES)
@ -755,7 +758,6 @@ static NSCell* tileCell = nil;
[theWindow makeMainWindow];
}
}
[theWindow orderFrontRegardless];
theSession = NULL;
code = NSRunContinuesResponse;
@ -802,6 +804,8 @@ static NSCell* tileCell = nil;
format: @"runModalSession: with wrong session"];
pool = [NSAutoreleasePool new];
[theSession->window orderFrontRegardless];
if ([theSession->window canBecomeKeyWindow] == YES)
{
[theSession->window makeKeyWindow];