mac: Close all child windows before closing current window
This commit is contained in:
parent
fd42e3dc84
commit
fb7e7b315c
1 changed files with 4 additions and 0 deletions
|
@ -604,6 +604,10 @@ void NativeWindowMac::Close() {
|
|||
}
|
||||
|
||||
void NativeWindowMac::CloseImmediately() {
|
||||
// Close all child windows before closing this window.
|
||||
for (NSWindow* child in [window_ childWindows])
|
||||
[child close];
|
||||
|
||||
[window_ close];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue