Remove window from window list before notifying closed event
This commit is contained in:
parent
4b4654ec71
commit
1e514620b5
2 changed files with 4 additions and 4 deletions
|
@ -443,10 +443,10 @@ void NativeWindow::NotifyWindowClosed() {
|
|||
if (is_closed_)
|
||||
return;
|
||||
|
||||
WindowList::RemoveWindow(this);
|
||||
|
||||
is_closed_ = true;
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnWindowClosed());
|
||||
|
||||
WindowList::RemoveWindow(this);
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowBlur() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue