mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Restore call to delegate method which was lost a while ago.
This commit is contained in:
parent
928e44b65c
commit
88e318e5e8
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue