WebUI: Catch potential undefined error when attempting to disable a plugin

This commit is contained in:
Calum Lind 2012-12-18 21:50:19 +00:00
parent 7c2725acdc
commit d3f0e00356
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ deluge.ui = {
},
onPluginDisabled: function(pluginName) {
deluge.plugins[pluginName].disable();
if (deluge.plugins[pluginName]) deluge.plugins[pluginName].disable();
},
onPluginLoaded: function(options) {