From 1a1678d85a41dfc38df6c0265e6cf2f3f652eeb4 Mon Sep 17 00:00:00 2001 From: law Date: Tue, 14 Jul 1998 23:11:05 +0000 Subject: [PATCH] Fix for bug#197179 git-svn-id: svn://10.0.0.236/trunk@5531 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/winfe/cxabstra.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/cmd/winfe/cxabstra.cpp b/mozilla/cmd/winfe/cxabstra.cpp index 6a56a5dcfe8..ffd9e74903d 100755 --- a/mozilla/cmd/winfe/cxabstra.cpp +++ b/mozilla/cmd/winfe/cxabstra.cpp @@ -627,8 +627,11 @@ int CAbstractCX::GetUrl(URL_Struct *pUrl, FO_Present_Types iFormatOut, BOOL bRea } } else if (GetContextType() != IconCX && GetContextType() != Pane) { - MWContext* pNewContext = SwitchToBrowserContext(pUrl); - return MK_CHANGING_CONTEXT; + // Make this conditional like non MOZ_MAIL_NEWS code below. + if( bForceNew && EDT_IS_EDITOR(GetContext()) ) { + MWContext* pNewContext = SwitchToBrowserContext(pUrl); + return MK_CHANGING_CONTEXT; + } } } #else