fix interaction between views and virtual folders that was resulting in matching messages not getting displayed, 351867, sr=mscott

git-svn-id: svn://10.0.0.236/trunk@212004 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com 2006-09-19 18:39:10 +00:00
parent 1f6d5a70e6
commit c744d9933d

View File

@ -117,7 +117,11 @@ var gSearchNotificationListener =
// load the last used mail view for the folder...
var result = dbFolderInfo.getUint32Property("current-view", 0);
ViewChangeByValue(result);
// do this on a timeout so that we don't issue a new search
// synchronously with the previous search's onSearchDone notification
// because that can cause a confusing sequence of onSearchDone and
// onNewSearch notifications.
setTimeout('ViewChangeByValue('+result+')', 0);
// now that we have finished loading a virtual folder, scroll to the correct message
ScrollToMessageAfterFolderLoad(vFolder);