mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix removing torrents that fail to download when added via url
This commit is contained in:
parent
c49ab0c6b1
commit
e39d1ab679
1 changed files with 2 additions and 3 deletions
|
@ -203,7 +203,6 @@ Ext.deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.form.on('render', this.onFormRender, this);
|
this.form.on('render', this.onFormRender, this);
|
||||||
this.form.disable();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onFormRender: function(form) {
|
onFormRender: function(form) {
|
||||||
|
@ -491,10 +490,10 @@ Ext.deluge.add.AddWindow = Ext.extend(Ext.deluge.add.Window, {
|
||||||
var selection = this.grid.getSelectionModel();
|
var selection = this.grid.getSelectionModel();
|
||||||
if (!selection.hasSelection()) return;
|
if (!selection.hasSelection()) return;
|
||||||
var torrent = selection.getSelected();
|
var torrent = selection.getSelected();
|
||||||
|
|
||||||
delete this.torrents[torrent.id];
|
|
||||||
this.grid.getStore().remove(torrent);
|
this.grid.getStore().remove(torrent);
|
||||||
this.optionsPanel.clear();
|
this.optionsPanel.clear();
|
||||||
|
|
||||||
|
if (this.torrents && this.torrents[torrent.id]) delete this.torrents[torrent.id];
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelect: function(selModel, rowIndex, record) {
|
onSelect: function(selModel, rowIndex, record) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue