restate and simplify the application-quit and application-don't-quit-while-windows-are-open logic. bug 163710 r=brendan,pinkerton
git-svn-id: svn://10.0.0.236/trunk@128508 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1792,14 +1792,7 @@ nsNativeAppSupportWin::HandleRequest( LPBYTE request, PRBool newWindow ) {
|
||||
native->SetIsServerMode( PR_FALSE );
|
||||
|
||||
// close app if there are no more top-level windows.
|
||||
PRBool quitIfNoWindows = PR_FALSE;
|
||||
appShell->GetQuitOnLastWindowClosing( &quitIfNoWindows );
|
||||
if (quitIfNoWindows) {
|
||||
nsCOMPtr<nsIDOMWindowInternal> win;
|
||||
GetMostRecentWindow( 0, getter_AddRefs( win ) );
|
||||
if (!win)
|
||||
appShell->Quit(nsIAppShellService::eAttemptQuit);
|
||||
}
|
||||
appShell->Quit(nsIAppShellService::eConsiderQuit);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user