Add "move to recycle bin without confirmation" setting

This commit is contained in:
Bernhard Berg 2020-08-08 18:57:00 +02:00 committed by Jonathan White
parent c9e7ffadad
commit de44764efa
5 changed files with 15 additions and 0 deletions

View file

@ -571,6 +571,8 @@ bool DatabaseWidget::confirmDeleteEntries(QList<Entry*> entries, bool permanent)
MessageBox::Cancel);
return answer == MessageBox::Delete;
} else if (config()->get(Config::Security_NoConfirmMoveEntryToRecycleBin).toBool()) {
return true;
} else {
QString prompt;
if (entries.size() == 1) {