Bug 391866 - after remove, the next file isn't highlighted (new DM). r=sdwilsh

This commit is contained in:
rflint@ryanflint.com 2007-08-12 00:54:56 -07:00
parent 259a1968be
commit 43d5a26c6a

View File

@ -216,7 +216,9 @@ function resumeDownload(aDownload)
function removeDownload(aDownload)
{
gDownloadManager.removeDownload(aDownload.getAttribute("dlid"));
var newIndex = Math.max(gDownloadsView.selectedIndex - 1, 0);
gDownloadsView.removeChild(aDownload);
gDownloadsView.selectedIndex = newIndex;
}
function showDownload(aDownload)