Fixed setting title bug 36179, lots of xul rewrite, e.g., replaced all 'align' on box with 'orient', using <tree> for simple lists. Added 'Insert Chars' feature by bakibon@yahoo.com

git-svn-id: svn://10.0.0.236/trunk@66718 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
2000-04-21 14:55:54 +00:00
parent 9d7ff496b5
commit 74d942f798
2 changed files with 8 additions and 8 deletions

View File

@@ -1357,6 +1357,8 @@ nsEditorShell::SaveDocument(PRBool saveAs, PRBool saveCopy, PRBool *_retval)
title = titleUnicode;
nsCRT::free(titleUnicode);
}
// This sets title in HTML node
SetDocumentTitle(title.GetUnicode());
}
// #if 0 Replace this with nsIFilePicker code
@@ -1519,10 +1521,9 @@ nsEditorShell::SaveDocument(PRBool saveAs, PRBool saveCopy, PRBool *_retval)
// File was saved successfully
*_retval = PR_TRUE;
// If user changed filename they may have changed title
// This will call UpdateWindowTitle
// Update window title to show possibly different filename
if (mustShowFileDialog)
SetDocumentTitle(title.GetUnicode());
UpdateWindowTitle();
}
}
break;
@@ -1877,7 +1878,6 @@ nsEditorShell::SetDocumentTitle(const PRUnichar *title)
}
}
}
UpdateWindowTitle();
return res;
}