зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c963b27c7e
Коммит
b5e9344c98
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче