update folder db on properties if we can't get one, r/sr=bienvenu

This commit is contained in:
Kent James 2009-01-18 13:06:37 -08:00
Родитель 7df09a0acb
Коммит 81fc58c9c4
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -206,6 +206,15 @@ function folderPropsOnLoad()
var serverType = window.arguments[0].serverType;
if (gMsgFolder) {
// We really need a functioning database, so we'll detect problems
// and create one if we have to.
try {
var db = gMsgFolder.getDatabase(null);
}
catch (e) {
gMsgFolder.updateFolder(window.arguments[0].msgWindow);
}
var locationTextbox = document.getElementById("location");
// Decode the displayed mailbox:// URL as it's useful primarily for debugging,