mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:50:38 +00:00
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:
parent
ab191734b3
commit
6561a2fbfb
2 changed files with 8 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue