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 2ba4c4a80d
commit 7ca87781f3

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");