summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-21 20:43:47 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-21 20:43:47 +0000
commit2be7960cc8dde34d23a2edea7131cd59c712f2cb (patch)
treef4780eb833496fa2e4941174e374001e9e355d91 /roundcubemail/program/include/rcmail.php
parentf21d21e74ffba0852fe02eb7cad9d62d6b5735d4 (diff)
Skip confirmation dialog when deleting a contact from a source that supports undelete operations
git-svn-id: https://svn.roundcube.net/trunk@5264 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
-rw-r--r--roundcubemail/program/include/rcmail.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index ca62fa2bb..edda07ca7 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/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'),
);
}