mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Delete entries for good if already in recycle bin
This commit is contained in:
parent
f8e2c95162
commit
e8ac70120b
@ -23,6 +23,7 @@
|
||||
#include <QtGui/QMessageBox>
|
||||
|
||||
#include "core/Metadata.h"
|
||||
#include "core/Tools.h"
|
||||
#include "gui/ChangeMasterKeyWidget.h"
|
||||
#include "gui/EditEntryWidget.h"
|
||||
#include "gui/EditGroupWidget.h"
|
||||
@ -107,7 +108,8 @@ void DatabaseWidget::createEntry()
|
||||
|
||||
void DatabaseWidget::deleteEntry()
|
||||
{
|
||||
if (!m_db->metadata()->recycleBinEnabled()) {
|
||||
bool inRecylceBin = Tools::hasChild(m_db->metadata()->recycleBin(), m_entryView->currentEntry());
|
||||
if (inRecylceBin || !m_db->metadata()->recycleBinEnabled()) {
|
||||
QMessageBox::StandardButton result = QMessageBox::question(
|
||||
this, tr("Question"), tr("Do you really want to delete this entry for good?"),
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
|
Loading…
Reference in New Issue
Block a user