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:
parent
49623e06d8
commit
a96e3f7e01
@ -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("");
|
||||
|
||||
@ -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("");
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user