[WebUI] Fix testing array after removing torrents

This commit is contained in:
Calum Lind 2017-06-17 03:49:30 +01:00
parent 2c66a4c29e
commit ace531e8ae
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ Deluge.RemoveWindow = Ext.extend(Ext.Window, {
remove: function(removeData) { remove: function(removeData) {
deluge.client.core.remove_torrents(this.torrentIds, removeData, { deluge.client.core.remove_torrents(this.torrentIds, removeData, {
success: function(result) { success: function(result) {
if (result) { if (result == true) {
console.log('Error(s) occured when trying to delete torrent(s).'); console.log('Error(s) occured when trying to delete torrent(s).');
} }
this.onRemoved(this.torrentIds); this.onRemoved(this.torrentIds);