mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +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
|
||||
});
|
||||
var name = this.form.getForm().findField('torrentFile').value;
|
||||
name = name.split('\\').slice(-1)[0];
|
||||
this.fireEvent('beforeadd', this.torrentId, name);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue