Don't try to show empty name on Composer caption, b=121684, r=brade, sr=hewitt

git-svn-id: svn://10.0.0.236/trunk@114647 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com 2002-02-16 02:24:04 +00:00
parent b4f613523b
commit 628b736830

View File

@ -1848,11 +1848,14 @@ nsEditorShell::UpdateWindowTitleAndRecentMenu(PRBool aSaveToPrefs)
docFileSpec->GetScheme(getter_Copies(schemeChar));
nsXPIDLCString fileNameChar;
url->GetFileName(getter_Copies(fileNameChar));
windowCaption += NS_LITERAL_STRING(" [") +
NS_ConvertASCIItoUCS2(schemeChar) +
NS_LITERAL_STRING(":/.../") +
NS_ConvertASCIItoUCS2(fileNameChar) +
NS_LITERAL_STRING("]");
if (fileNameChar.Length() > 0)
{
windowCaption += NS_LITERAL_STRING(" [") +
NS_ConvertASCIItoUCS2(schemeChar) +
NS_LITERAL_STRING(":/.../") +
NS_ConvertASCIItoUCS2(fileNameChar) +
NS_LITERAL_STRING("]");
}
}
}
nsCOMPtr<nsIBaseWindow> contentAreaAsWin(do_QueryInterface(mContentAreaDocShell));