End sheet in parent when closing modal window

This commit is contained in:
Kevin Sawicki 2016-09-07 15:24:37 -07:00
parent 691aec701f
commit 8652888e27

View file

@ -619,6 +619,7 @@ NativeWindowMac::~NativeWindowMac() {
void NativeWindowMac::Close() {
// When this is a sheet showing, performClose won't work.
if (is_modal() && parent() && IsVisible()) {
[parent()->GetNativeWindow() endSheet:window_];
CloseImmediately();
return;
}