summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 2d95281c0..356e27a2f 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2503,9 +2503,14 @@ function rcube_webmail()
var id;
if (id = list.get_single_selection())
{
- var folder = this.env.subscriptionrows['rcmrow'+id][0];
- if (find_in_array(this.env.defaultfolders, folder)!=0)
- this.set_env('folder', folder);
+ if (this.env.subscriptionrows['rcmrow'+id])
+ {
+ var folder = this.env.subscriptionrows['rcmrow'+id][0];
+ if (find_in_array(this.env.defaultfolders, folder)!=0)
+ this.set_env('folder', folder);
+ }
+ else
+ list.clear_selection();
}
};