Bug 393652 - Trunk builds on Mac do not quit from menu after first window is closed. r=benjamin@smedbergs.us (Benjamin Smedberg) Toolkit Only, no approval.

This commit is contained in:
gijskruitbosch@gmail.com 2007-08-30 00:26:09 -07:00
parent 74b43ab972
commit 40ddad05bd

View File

@ -203,10 +203,6 @@ nsAppStartup::Quit(PRUint32 aMode)
// it will be treated the same as eAttemptQuit, below
}
mShuttingDown = PR_TRUE;
if (!mRestart)
mRestart = aMode & eRestart;
// If we're considering quitting, we will only do so if:
if (ferocity == eConsiderQuit) {
if (mConsiderQuitStopper == 0) {
@ -236,6 +232,10 @@ nsAppStartup::Quit(PRUint32 aMode)
#endif
}
mShuttingDown = PR_TRUE;
if (!mRestart)
mRestart = aMode & eRestart;
/* Currently ferocity can never have the value of eForceQuit here.
That's temporary (in an unscheduled kind of way) and logically
this code is part of the eForceQuit case, so I'm checking against