From 82a5b5262c9cd975910eb9eabfd0be2c9bd5b3d8 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sun, 2 May 2010 18:09:43 +0100 Subject: [PATCH] fix the torrent grid, clear the torrents on disconnect, not logout --- deluge/ui/web/js/deluge-all/TorrentGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-all/TorrentGrid.js b/deluge/ui/web/js/deluge-all/TorrentGrid.js index d23d095d3..04a020432 100644 --- a/deluge/ui/web/js/deluge-all/TorrentGrid.js +++ b/deluge/ui/web/js/deluge-all/TorrentGrid.js @@ -227,7 +227,7 @@ initComponent: function() { Deluge.TorrentGrid.superclass.initComponent.call(this); deluge.events.on('torrentRemoved', this.onTorrentRemoved, this); - deluge.events.on('logout', this.onDisconnect, this); + deluge.events.on('disconnect', this.onDisconnect, this); this.on('rowcontextmenu', function(grid, rowIndex, e) { e.stopEvent();