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

This commit is contained in:
cmanske%netscape.com 2002-02-16 02:24:04 +00:00
parent 1ac4d9dc58
commit 98bb38ac3e

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));