summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-09-21 20:43:47 +0000
committerthomascube <thomas@roundcube.net>2011-09-21 20:43:47 +0000
commitd06e57fdf21879a4e93d6c00b939ca42094d3e86 (patch)
treead0f6f5658558aa92480c0a4a7c1cf106df3a28a /program/include/rcmail.php
parent5f71297bc972a5998dc5235e92762c27923f5489 (diff)
Skip confirmation dialog when deleting a contact from a source that supports undelete operations
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index ca62fa2bb..edda07ca7 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -483,7 +483,8 @@ class rcmail
'name' => rcube_label('personaladrbook'),
'groups' => $this->address_books['0']->groups,
'readonly' => $this->address_books['0']->readonly,
- 'autocomplete' => in_array('sql', $autocomplete)
+ 'autocomplete' => in_array('sql', $autocomplete),
+ 'undelete' => $this->address_books['0']->undelete && $this->config->get('undo_timeout'),
);
}