Bug 389118: messagepane content not cleared when opening saved search folder with no matches; p=Bruno Escherl <aqualon@aquachan.de>, r=me, sr=bienvenu

This commit is contained in:
mnyromyr%tprac.de 2007-08-07 21:27:01 +00:00
Родитель c963b27c7e
Коммит b5e9344c98
2 изменённых файлов: 7 добавлений и 3 удалений

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

@ -229,7 +229,9 @@ var folderListener = {
if (uri == gCurrentLoadingFolderURI) {
viewDebug("uri == current loading folder uri\n");
gCurrentLoadingFolderURI = "";
if (!scrolled)
// scroll to message for virtual folders is done in
// gSearchNotificationListener.OnSearchDone (see searchBar.js)
if (!scrolled && !(gMsgFolderSelected.flags & MSG_FOLDER_FLAG_VIRTUAL))
ScrollToMessageAfterFolderLoad(msgFolder);
SetBusyCursor(window, false);
}

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

@ -97,8 +97,10 @@ var gSearchNotificationListener =
vFolder.updateSummaryTotals(true); // force update from db.
var msgdb = vFolder.getMsgDatabase(msgWindow);
msgdb.Commit(MSG_DB_LARGE_COMMIT);
// now that we have finished loading a virtual folder, scroll to the correct message
ScrollToMessageAfterFolderLoad(vFolder);
// now that we have finished loading a virtual folder,
// scroll to the correct message if there is at least one.
if (vFolder.getTotalMessages(false) > 0)
ScrollToMessageAfterFolderLoad(vFolder);
}
},