From 7e71995e557ab635560f3383eb3fc8a511fb8e71 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 2f4dc397c..68c3a8b86 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) {