From d3f0e00356696d8391fbe5e85f347717adc201d9 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 18 Dec 2012 21:50:19 +0000 Subject: [PATCH] WebUI: Catch potential undefined error when attempting to disable a plugin --- deluge/ui/web/js/deluge-all/UI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-all/UI.js b/deluge/ui/web/js/deluge-all/UI.js index b4305c06f..08774afc2 100644 --- a/deluge/ui/web/js/deluge-all/UI.js +++ b/deluge/ui/web/js/deluge-all/UI.js @@ -256,7 +256,7 @@ deluge.ui = { }, onPluginDisabled: function(pluginName) { - deluge.plugins[pluginName].disable(); + if (deluge.plugins[pluginName]) deluge.plugins[pluginName].disable(); }, onPluginLoaded: function(options) {