Fixes problem where deleting a note would accidentally hide other items in the list.

This commit is contained in:
David Norton 2006-07-05 15:35:15 +00:00
parent daf8808615
commit cb4a79ef9d

View File

@ -84,8 +84,11 @@ Scholar.ItemTreeView.prototype.notify = function(action, type, ids)
for(var i=0, len=rows.length; i<len; i++)
{
var row = rows[i];
this._hideItem(row-i);
this._treebox.rowCountChanged(row-i,-1);
if(row != null)
{
this._hideItem(row-i);
this._treebox.rowCountChanged(row-i,-1);
}
}
madeChanges = true;