diff --git a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js index a9b4d7df0..d963d1fde 100644 --- a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js @@ -232,9 +232,9 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { }, onPluginEnabled: function(pluginName) { - var index = this.grid.getStore().find('plugin', pluginName); + var index = this.list.getStore().find('plugin', pluginName); if (index == -1) return; - var plugin = this.grid.getStore().getAt(index); + var plugin = this.list.getStore().getAt(index); plugin.set('enabled', true); plugin.commit(); },