mac: Close all child windows before closing current window

This commit is contained in:
Cheng Zhao 2016-06-17 15:47:05 +09:00
parent fd42e3dc84
commit fb7e7b315c

View file

@ -604,6 +604,10 @@ void NativeWindowMac::Close() {
} }
void NativeWindowMac::CloseImmediately() { void NativeWindowMac::CloseImmediately() {
// Close all child windows before closing this window.
for (NSWindow* child in [window_ childWindows])
[child close];
[window_ close]; [window_ close];
} }