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

@ -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);
}