Bug 837117 - Downloaded items change position in the downloads view if Clear List is selected.

r=Mano
This commit is contained in:
Marco Bonardo 2013-02-05 21:56:03 +01:00
parent 1360f99541
commit 20781e041d

View File

@ -1037,8 +1037,8 @@ DownloadsPlacesView.prototype = {
else {
shell.dataItem = null;
// Move it below the session-download items;
if (this._lastSessionDownloadElement == shell.dataItem) {
this._lastSessionDownloadElement = shell.dataItem.previousSibling;
if (this._lastSessionDownloadElement == shell.element) {
this._lastSessionDownloadElement = shell.element.previousSibling;
}
else {
let before = this._lastSessionDownloadElement ?