Mercurial > snowl
changeset 277:4de6fb8044e7
don't select an item after rebuilding the view in the list view
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Thu, 28 Aug 2008 16:14:54 -0700 |
parents | 53d67fb2a9dc |
children | eb0a143a3080 |
files | content/list.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/content/list.js Thu Aug 28 16:00:38 2008 -0700 +++ b/content/list.js Thu Aug 28 16:14:54 2008 -0700 @@ -248,7 +248,7 @@ _rebuildView: function() { // Clear the selection before we rebuild the view, since it won't apply // to the new data. - this._tree.view.selection.clearSelection(); + this._tree.view.selection.select(-1); // Since the number of rows might have changed, we rebuild the view // by reinitializing it instead of merely invalidating the box object