From 6b8ff92fe2f3e644e66f2a5ef309caf30d1b8e98 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 11 Aug 2009 23:43:56 +0000 Subject: [PATCH] improve the connection manager --- deluge/ui/web/js/Deluge.ConnectionManager.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deluge/ui/web/js/Deluge.ConnectionManager.js b/deluge/ui/web/js/Deluge.ConnectionManager.js index 4c4e6a5b2..137fb07c3 100644 --- a/deluge/ui/web/js/Deluge.ConnectionManager.js +++ b/deluge/ui/web/js/Deluge.ConnectionManager.js @@ -302,12 +302,8 @@ Copyright: }, onGetHosts: function(hosts) { - var store = this.grid.getStore(); + this.grid.getStore().loadData(hosts); Ext.each(hosts, function(host) { - var record = store.getById(host[0]); - if (!record) { - store.loadData([host], true); - } Deluge.Client.web.get_host_status(host[0], { success: this.onGetHostStatus, scope: this