Don't order out until after modla loop has terminated.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5328 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-11-29 17:41:11 +00:00
parent 38b6a26689
commit 906da5937b

View file

@ -241,7 +241,6 @@ static GSAlertPanel *gmodelAlertPanel = nil;
(unsigned)sender); (unsigned)sender);
} }
active = NO; active = NO;
[self orderOut: self];
[[NSApplication sharedApplication] stopModal]; [[NSApplication sharedApplication] stopModal];
} }
@ -410,6 +409,7 @@ static GSAlertPanel *gmodelAlertPanel = nil;
{ {
active = YES; active = YES;
[NSApp runModalForWindow: self]; [NSApp runModalForWindow: self];
[self orderOut: self];
return result; return result;
} }