Close sheet before removing from parent.

* Source/NSAlert.m (NSBeginAlertSheet): Move closing the sheet from
here...
* Source/NSApplication.m (-beginSheet:...:contextInfo:): ...to here.
This commit is contained in:
fredkiefer 2018-02-04 21:18:43 +01:00
parent b17b443266
commit 712e7a4e15
3 changed files with 7 additions and 9 deletions

View file

@ -2032,6 +2032,7 @@ See -runModalForWindow:
didEnd(modalDelegate, didEndSelector, sheet, ret, contextInfo);
}
[sheet close];
[docWindow setAttachedSheet: nil];
[sheet setParentWindow: nil];
[[NSNotificationCenter defaultCenter]