mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
ensure that we are definitely using the filename
This commit is contained in:
parent
a23648c657
commit
4031b9f94b
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ Ext.deluge.add.FileWindow = Ext.extend(Ext.deluge.add.Window, {
|
||||||
scope: this
|
scope: this
|
||||||
});
|
});
|
||||||
var name = this.form.getForm().findField('torrentFile').value;
|
var name = this.form.getForm().findField('torrentFile').value;
|
||||||
|
name = name.split('\\').slice(-1)[0];
|
||||||
this.fireEvent('beforeadd', this.torrentId, name);
|
this.fireEvent('beforeadd', this.torrentId, name);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue