summaryrefslogtreecommitdiff
path: root/plugins/managesieve
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-11-04 09:48:13 +0000
committeralecpl <alec@alec.pl>2009-11-04 09:48:13 +0000
commit53d3b0f834c0ba75b398a115c0d0959a8834da12 (patch)
treed5cde31fd959fa1b8e86c3e0c42889abf7caa98b /plugins/managesieve
parent6ed9d986f1c9e6e67898d3bdee2d50045ba28fbe (diff)
- fix 'set activate' button status setting
Diffstat (limited to 'plugins/managesieve')
-rw-r--r--plugins/managesieve/managesieve.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js
index aac302bc7..99b820f4e 100644
--- a/plugins/managesieve/managesieve.js
+++ b/plugins/managesieve/managesieve.js
@@ -34,7 +34,8 @@ if (window.rcmail) {
rcmail.enable_command('plugin.managesieve-add', 'plugin.managesieve-setadd', !rcmail.env.sieveconnerror);
rcmail.enable_command('plugin.managesieve-set', rcmail.gui_objects.filtersetslist != null);
rcmail.enable_command('plugin.managesieve-setact',
- (rcmail.gui_objects.filtersetslist && rcmail.gui_objects.filtersetslist.value != rcmail.env.active_set));
+ (rcmail.gui_objects.filtersetslist && rcmail.gui_objects.filtersetslist.length > 1
+ && rcmail.gui_objects.filtersetslist.value != rcmail.env.active_set));
rcmail.enable_command('plugin.managesieve-setdel',
(rcmail.gui_objects.filtersetslist && rcmail.gui_objects.filtersetslist.length > 1));
}