diff options
-rw-r--r-- | plugins/managesieve/managesieve.js | 3 |
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)); } |