Bug 423250: Library search results don't refresh after clearing search box contents, patch by Marco Bonardo <mak77@supereva.it>, r=dietrich, a=beltzner

This commit is contained in:
gavin@gavinsharp.com 2008-04-23 16:03:04 -07:00
parent 22360d31ab
commit 1d5ef68760

View File

@ -212,8 +212,10 @@ var PlacesOrganizer = {
options.excludeItems = false;
var placeURI = PlacesUtils.history.queriesToQueryString(queries, queries.length, options);
// update the right-pane contents
if (this._content.place != placeURI)
// Update the right-pane contents.
// We must update also if the user clears the search box, in that case
// we are called with resetSearchBox == false.
if (this._content.place != placeURI || !resetSearchBox)
this._content.place = placeURI;
// This just updates the back/forward buttons, it doesn't call us back