Don't reset the page selection if the results have changed while the user

was browsing exiting results

This is most noticeable when viewing results in xephyr, and then opening
a document in your regular session. But it could also be noticeable if
downloading a new file completes while the user is in the overlay.

This patch also moves the call to _displayMatchedItems() to _redisplay
instead of making it in both _setDefaultList() and _doSearchFilter().
This commit is contained in:
Marina Zhurakhinskaya
2009-03-11 17:56:22 -04:00
parent 39eb563687
commit 30a9c6b2f4
3 changed files with 34 additions and 28 deletions

View File

@ -131,7 +131,7 @@ AppDisplay.prototype = {
// We still need to determine what events other than search can trigger
// a change in the set of applications that are being shown while the
// user in in the overlay mode, however let's redisplay just in case.
me._redisplay();
me._redisplay(false);
});
// Load the GAppInfos now so it doesn't slow down the first
@ -174,7 +174,6 @@ AppDisplay.prototype = {
this._matchedItems.push(appId);
}
}
this._displayMatchedItems(true);
},
// Compares items associated with the item ids based on the alphabetical order