Bug 837117 (follow-up) - Downloaded items change position in the downloads view if Clear List is selected

r=mconley
This commit is contained in:
Marco Bonardo 2013-02-12 23:50:37 +01:00
parent 93a349fd4e
commit eb65cc0399

View File

@ -996,6 +996,10 @@ DownloadsPlacesView.prototype = {
this._richlistbox.selectedItems[0] == aElement) {
this._richlistbox.selectItem(aElement.nextSibling);
}
if (this._lastSessionDownloadElement == aElement)
this._lastSessionDownloadElement = aElement.previousSibling;
this._richlistbox.removeChild(aElement);
this._ensureVisibleElementsAreActive();
goUpdateCommand("downloadsCmd_clearDownloads");