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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user