From 1566696e478f909580cfa87cebabcf385a1af2f6 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 17 Feb 1999 16:18:17 +0000 Subject: [PATCH] Added an ifdef to get exit working because the Register and unregister isn't working right git-svn-id: svn://10.0.0.236/trunk@20973 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsAppShellService.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/xpfe/appshell/src/nsAppShellService.cpp b/mozilla/xpfe/appshell/src/nsAppShellService.cpp index 70940dc4655..b9e0f124d87 100644 --- a/mozilla/xpfe/appshell/src/nsAppShellService.cpp +++ b/mozilla/xpfe/appshell/src/nsAppShellService.cpp @@ -164,7 +164,10 @@ nsAppShellService::DispatchNativeEvent(void * aEvent) NS_IMETHODIMP nsAppShellService::Shutdown(void) { - //mAppShell->Exit(); + +#if 1 + mAppShell->Exit(); +#else while (mWindowList->Count() > 0) { nsISupports * winSupports = mWindowList->ElementAt(0); nsCOMPtr window(do_QueryInterface(winSupports)); @@ -185,6 +188,7 @@ nsAppShellService::Shutdown(void) break; } } +#endif return NS_OK; }