From 086377c7e648744daa7778673182de496a1b268d Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Wed, 22 Nov 2006 06:46:56 -0500
Subject: [PATCH] Fix a bug introduced with Shift-Del yesterday

---
 program/js/app.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 8157159..bc6563e 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1343,7 +1343,7 @@
     // if there is a trash mailbox defined and we're not currently in it:
     if (this.env.trash_mailbox && String(this.env.mailbox).toLowerCase()!=String(this.env.trash_mailbox).toLowerCase())
       // if shift was pressed delete it immediately
-      if (this.message_list.shiftkey)
+      if (this.message_list && this.message_list.shiftkey)
         {
         if (confirm(this.get_label('deletemessagesconfirm')))
           this.permanently_remove_messages();

--
Gitblit v1.9.1