ensure that we are definitely using the filename

This commit is contained in:
Damien Churchill 2010-03-17 23:09:44 +00:00
parent a23648c657
commit 4031b9f94b

View File

@ -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);
}
},