mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix for shutting down when initiated by menu bar
This commit is contained in:
parent
0ed21b513b
commit
4588b580c1
@ -420,7 +420,7 @@ nsresult nsShellInstance::ExitApplication()
|
||||
{
|
||||
|
||||
#ifdef NS_WIN32
|
||||
PostQuitMessage(0);
|
||||
::PostMessage((HWND)GetApplicationWindowNativeInstance(),WM_CLOSE,0,0L);
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
@ -525,6 +525,9 @@ nsEventStatus PR_CALLBACK HandleEventApplication(nsGUIEvent *aEvent)
|
||||
|
||||
}
|
||||
|
||||
} else if ((aEvent->message == NS_DESTROY) && (gShellInstance->GetApplicationWidget() == aEvent->widget))
|
||||
{
|
||||
::PostQuitMessage(0);
|
||||
}
|
||||
|
||||
return (gShellInstance->GetApplicationShell()->HandleEvent(aEvent));
|
||||
|
Loading…
Reference in New Issue
Block a user