Fix for shutting down when initiated by menu bar

git-svn-id: svn://10.0.0.236/trunk@13465 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
spider%netscape.com
1998-10-26 19:34:51 +00:00
parent 7a8682458e
commit b48fcb2453

View File

@@ -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));