Remove redundant calls to close method.

This commit is contained in:
Wolfgang Lux 2020-04-01 12:57:37 +02:00
parent 88e318e5e8
commit b42691c160
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,9 @@
* Source/NSAlert.m (NSBeginAlertSheet): Restore call to delegate
method which was lost a while ago.
* Source/NSAlert.m (NSBeginCriticalAlertSheet,
NSBeginInformationalAlertSheet): Remove redundant calls to close
method.
2020-03-26 Fred Kiefer <FredKiefer@gmx.de>

View file

@ -1716,7 +1716,6 @@ void NSBeginCriticalAlertSheet(NSString *title,
modalDelegate: modalDelegate
didEndSelector: willEndSelector
contextInfo: contextInfo];
[panel close];
if (modalDelegate && [modalDelegate respondsToSelector: didEndSelector])
{
void (*didEnd)(id, SEL, id, NSInteger, void*);
@ -1757,7 +1756,6 @@ void NSBeginInformationalAlertSheet(NSString *title,
modalDelegate: modalDelegate
didEndSelector: willEndSelector
contextInfo: contextInfo];
[panel close];
if (modalDelegate && [modalDelegate respondsToSelector: didEndSelector])
{
void (*didEnd)(id, SEL, id, NSInteger, void*);