From 8ef29e796e1b752e2483ab80801660471be8d2d3 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Mon, 24 Feb 2003 22:41:14 +0000 Subject: [PATCH] 158380 for OS/2 git-svn-id: svn://10.0.0.236/trunk@138387 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/bootstrap/nsNativeAppSupportOS2.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mozilla/xpfe/bootstrap/nsNativeAppSupportOS2.cpp b/mozilla/xpfe/bootstrap/nsNativeAppSupportOS2.cpp index 2f7222e2ce8..f9357dfcf5f 100644 --- a/mozilla/xpfe/bootstrap/nsNativeAppSupportOS2.cpp +++ b/mozilla/xpfe/bootstrap/nsNativeAppSupportOS2.cpp @@ -2296,6 +2296,16 @@ nsNativeAppSupportOS2::StartServerMode() { // We dont have to anything anymore. The native UI // will create the window return NS_OK; + } else { + // Sometimes a window will have been opened even though mShouldShowUI is false + // (e.g., mozilla -mail -turbo). Detect that by testing whether there's a + // window already open. + nsCOMPtr win; + GetMostRecentWindow( 0, getter_AddRefs( win ) ); + if ( win ) { + // Window already opened, don't need this special Nav window. + return NS_OK; + } } // Since native UI wont create any window, we create a hidden window