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

2 views
Skip to first unread message

g...@deluge-torrent.org

unread,
Dec 18, 2012, 4:53:53 PM12/18/12
to deluge...@googlegroups.com
Module: deluge
Branch: 1.3-stable
Commit: 7e71995e557ab635560f3383eb3fc8a511fb8e71

Author: Calum Lind <calumlin...@gmail.com>
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) {

g...@deluge-torrent.org

unread,
Dec 18, 2012, 4:53:54 PM12/18/12
to deluge...@googlegroups.com
Module: deluge
Branch: master
Commit: d3f0e00356696d8391fbe5e85f347717adc201d9

Author: Calum Lind <calumlin...@gmail.com>
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
Reply all
Reply to author
Forward
0 new messages