mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 837117 (follow-up) - Downloaded items change position in the downloads view if Clear List is selected
r=mconley
This commit is contained in:
parent
93a349fd4e
commit
eb65cc0399
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user