Bug 362741: Selecting folder with previous view unread, while viewing another unread folder, fails; p=Kent James <kent@caspia.com>, r=me, sr=mscott

git-svn-id: svn://10.0.0.236/trunk@216913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mnyromyr%tprac.de 2006-12-12 23:24:51 +00:00
parent 49623e06d8
commit a96e3f7e01
3 changed files with 2 additions and 6 deletions

View File

@ -292,7 +292,7 @@ var folderListener = {
// if our new view is the same as the old view and we already have the list of search terms built up
// for the old view, just re-use it
var result = GetMailViewForFolder(msgFolder);
if (gCurrentViewValue == result && gDefaultSearchViewTerms)
if (GetSearchInput() && gCurrentViewValue == result && gDefaultSearchViewTerms)
{
viewDebug("searching gDefaultSearchViewTerms and rerootingFolder\n");
Search("");

View File

@ -276,7 +276,7 @@ var folderListener = {
// if our new view is the same as the old view and we already have the list of search terms built up
// for the old view, just re-use it
var result = GetMailViewForFolder(msgFolder);
if (gCurrentViewValue == result && gDefaultSearchViewTerms)
if (GetSearchInput() && gCurrentViewValue == result && gDefaultSearchViewTerms)
{
viewDebug("searching gDefaultSearchViewTerms and rerootingFolder\n");
Search("");

View File

@ -76,10 +76,6 @@ function ViewChange(aValue, aLabel)
return;
}
// bail out early if the user picked the same view
if (gCurrentViewValue == aValue)
return;
// persist the view
gCurrentViewValue = aValue;
gCurrentViewLabel = aLabel;