Module: deluge Branch: master Commit: d3f0e00356696d8391fbe5e85f347717adc201d9
Author: Calum Lind <[email protected]> Date: Tue Dec 18 21:50:19 2012 +0000 WebUI: Catch potential undefined error when attempting to disable a plugin --- deluge/ui/web/js/deluge-all/UI.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/UI.js b/deluge/ui/web/js/deluge-all/UI.js index b4305c0..08774af 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) { -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
