From d98fce631a7add989a82eb30106120963c148f83 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Sat, 26 Apr 2003 01:50:56 +0000 Subject: [PATCH] Bug #194315 --> for thunderbird, bring up mail chrome as part of ensure 1 window and not a browser window. does not effect seamonkey builds sr=bryner a=sspitzer --- xpfe/appshell/src/nsAppShellService.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xpfe/appshell/src/nsAppShellService.cpp b/xpfe/appshell/src/nsAppShellService.cpp index 78be32367ab..63fa5acf44e 100644 --- a/xpfe/appshell/src/nsAppShellService.cpp +++ b/xpfe/appshell/src/nsAppShellService.cpp @@ -1231,7 +1231,15 @@ nsAppShellService::Ensure1Window(nsICmdLineService *aCmdLineService) if (NS_SUCCEEDED(rv) && !tempString.IsEmpty()) PR_sscanf(tempString.get(), "%d", &height); +#ifdef MOZ_THUNDERBIRD + PRBool windowOpened = PR_FALSE; + rv = LaunchTask(NULL, height, width, &windowOpened); + if (NS_FAILED(rv) || !windowOpened) + rv = LaunchTask("mail", height, width, &windowOpened); + +#else rv = OpenBrowserWindow(height, width); +#endif } } return rv;