From 061b9b3853d45d3e17026b56fc7f6d422bf88cc6 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Fri, 30 Aug 2002 19:18:23 +0000 Subject: [PATCH] Sync with interface changes. Not part of the build. --- toolkit/xre/nsAppRunner.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index a96916f32bfc..2b276139457f 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -1456,7 +1456,7 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp, if (NS_FAILED(rv)) return rv; // So we can open and close windows during startup - appShell->SetQuitOnLastWindowClosing(PR_FALSE); + appShell->EnterLastWindowClosingSurvivalArea(); // Initialize Profile Service here. NS_TIMELINE_ENTER("InitializeProfileService"); @@ -1499,8 +1499,9 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp, NS_ASSERTION(NS_SUCCEEDED(rv), "failed to Ensure1Window"); if (NS_FAILED(rv)) return rv; - // From this point on, should be true - appShell->SetQuitOnLastWindowClosing(PR_TRUE); +#if !defined(XP_MAC) && !defined(XP_MACOSX) + appShell->ExitLastWindowClosingSurvivalArea(); +#endif #ifdef MOZ_ENABLE_XREMOTE // if we have X remote support and we have our one window up and