diff --git a/ChangeLog b/ChangeLog index e1f156607..650d5cdb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-16 15:02-EDT Gregory John Casamento + + * Source/NSAlert.m: Order front regardless to prevent reported + cases of problems when sheets/panels bring up additional + sheets/panels. + 2009-04-14 21:24-EDT Gregory John Casamento * Source/GSHorizontalTypesetter.m: Use thread dictionary to hold diff --git a/Source/NSAlert.m b/Source/NSAlert.m index ccc1db4a7..968694d61 100644 --- a/Source/NSAlert.m +++ b/Source/NSAlert.m @@ -1108,6 +1108,8 @@ NSRunAlertPanel( panel = getSomePanel(&standardAlertPanel, defaultTitle, title, message, defaultButton, alternateButton, otherButton); + [panel orderFrontRegardless]; + result = [panel runModal]; NSReleaseAlertPanel(panel); return result; @@ -1155,6 +1157,8 @@ NSRunLocalizedAlertPanel( panel = getSomePanel(&standardAlertPanel, @"Alert", title, message, defaultButton, alternateButton, otherButton); + [panel orderFrontRegardless]; + result = [panel runModal]; NSReleaseAlertPanel(panel); return result; @@ -1201,6 +1205,8 @@ NSRunCriticalAlertPanel( panel = getSomePanel(&criticalAlertPanel, @"Critical", title, message, defaultButton, alternateButton, otherButton); + [panel orderFrontRegardless]; + result = [panel runModal]; NSReleaseAlertPanel(panel); return result; @@ -1248,6 +1254,8 @@ NSRunInformationalAlertPanel( @"Information", title, message, defaultButton, alternateButton, otherButton); + [panel orderFrontRegardless]; + result = [panel runModal]; NSReleaseAlertPanel(panel); return result; @@ -1294,7 +1302,8 @@ void NSBeginAlertSheet(NSString *title, panel = getSomePanel(&standardAlertPanel, defaultTitle, title, message, defaultButton, alternateButton, otherButton); - + [panel orderFrontRegardless]; + // FIXME: We should also change the button action to call endSheet: [NSApp beginSheet: panel modalForWindow: docWindow @@ -1334,6 +1343,7 @@ void NSBeginCriticalAlertSheet(NSString *title, panel = getSomePanel(&criticalAlertPanel, @"Critical", title, message, defaultButton, alternateButton, otherButton); + [panel orderFrontRegardless]; // FIXME: We should also change the button action to call endSheet: [NSApp beginSheet: panel @@ -1376,6 +1386,7 @@ void NSBeginInformationalAlertSheet(NSString *title, @"Information", title, message, defaultButton, alternateButton, otherButton); + [panel orderFrontRegardless]; // FIXME: We should also change the button action to call endSheet: [NSApp beginSheet: panel