mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Don't try to show empty name on Composer caption, b=121684, r=brade, sr=hewitt
This commit is contained in:
parent
1ac4d9dc58
commit
98bb38ac3e
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user