fix the torrent grid, clear the torrents on disconnect, not logout

This commit is contained in:
Damien Churchill 2010-05-02 18:09:43 +01:00
parent 1b0e08b3d9
commit 82a5b5262c
1 changed files with 1 additions and 1 deletions

View File

@ -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();