Module: deluge
Branch: 1.3-stable
Commit: 7e71995e557ab635560f3383eb3fc8a511fb8e71

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 2f4dc39..68c3a8b 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.

Reply via email to