Bug 451352 - Further fixes to pwmgr search filtering UI; r=dolske

This commit is contained in:
Ehsan Akhgari 2009-01-30 11:43:16 +03:30
Родитель 7ba06ce682
Коммит a723b0678b
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -253,7 +253,7 @@ function SignonClearFilter() {
// Restore selection
if (singleSelection) {
signonsTreeView.selection.clearSelection();
for (i = 0; i < signonsTreeView._lastSelectedRanges.length; ++i) {
for (let i = 0; i < signonsTreeView._lastSelectedRanges.length; ++i) {
var range = signonsTreeView._lastSelectedRanges[i];
signonsTreeView.selection.rangedSelect(range.min, range.max, true);
}
@ -321,7 +321,9 @@ function _filterPasswords()
signonsTreeView._filterSet = newFilterSet;
// Clear the display
signonsTree.treeBoxObject.rowCountChanged(0, -signonsTreeView.rowCount);
let oldRowCount = signonsTreeView.rowCount;
signonsTreeView.rowCount = 0;
signonsTree.treeBoxObject.rowCountChanged(0, -oldRowCount);
// Set up the filtered display
signonsTreeView.rowCount = signonsTreeView._filterSet.length;
signonsTree.treeBoxObject.rowCountChanged(0, signonsTreeView.rowCount);