From bff13e455a43a4a84c2955b3b09d26ce2460e9ae Mon Sep 17 00:00:00 2001 From: gcasa Date: Fri, 10 Apr 2009 14:25:20 +0000 Subject: [PATCH] * Source/NSAlert.m: in the method _initWithoutGModel add a call to setLevel: to set the level to NSModalPanelWindowLevel. This was not previously being done and was causing alert panels to get lost behind other application windows. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28195 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Source/NSAlert.m | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index cef338383..1d06e2b82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-04-10 10:24-EDT Gregory John Casamento + + * Source/NSAlert.m: in the method _initWithoutGModel add a call + to setLevel: to set the level to NSModalPanelWindowLevel. This was + not previously being done and was causing alert panels to get lost + behind other application windows. + 2009-04-10 01:32-EDT Gregory John Casamento * Source/NSMenuView.m: Removed adjustment to Y coords in the diff --git a/Source/NSAlert.m b/Source/NSAlert.m index be9ee4f10..ccc1db4a7 100644 --- a/Source/NSAlert.m +++ b/Source/NSAlert.m @@ -351,6 +351,7 @@ setControl(NSView* content, id control, NSString *title) return nil; [self setTitle: @" "]; + [self setLevel: NSModalPanelWindowLevel]; content = [self contentView]; // we're an ATTENTION panel, therefore: