From 21431f18e155a5b6d942219e33cd74a4ab300df3 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sun, 14 Mar 2010 09:05:12 +0000 Subject: [PATCH] reset the torrents object upon a disconnect so there aren't any errors when reconnecting --- deluge/ui/web/js/deluge-all/Deluge.Torrents.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deluge/ui/web/js/deluge-all/Deluge.Torrents.js b/deluge/ui/web/js/deluge-all/Deluge.Torrents.js index 8c10bcd6a..dfdf0cffd 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Torrents.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Torrents.js @@ -248,6 +248,9 @@ Copyright: return this.getSelectionModel().getSelected(); }, + /** + * Returns the currently selected records. + */ getSelections: function() { return this.getSelectionModel().getSelections(); }, @@ -294,6 +297,7 @@ Copyright: // private onDisconnect: function() { this.getStore().removeAll(); + this.torrents = {}; }, // private