Restore call to delegate method which was lost a while ago.

This commit is contained in:
Wolfgang Lux 2020-04-01 12:55:53 +02:00
parent 928e44b65c
commit 88e318e5e8
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2020-04-01 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSAlert.m (NSBeginAlertSheet): Restore call to delegate
method which was lost a while ago.
2020-03-26 Fred Kiefer <FredKiefer@gmx.de>
* Documentation/news.texi: Started to fill in some details for

View file

@ -1678,6 +1678,13 @@ void NSBeginAlertSheet(NSString *title,
modalDelegate: modalDelegate
didEndSelector: willEndSelector
contextInfo: contextInfo];
if (modalDelegate && [modalDelegate respondsToSelector: didEndSelector])
{
void (*didEnd)(id, SEL, id, NSInteger, void*);
didEnd = (void (*)(id, SEL, id, NSInteger, void*))[modalDelegate
methodForSelector: didEndSelector];
didEnd(modalDelegate, didEndSelector, panel, [panel result], contextInfo);
}
NSReleaseAlertPanel(panel);
}