From c9d1512748162e79401597ac7cabec988d8d7f8b Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Fri, 11 Dec 2020 13:11:42 +0100 Subject: [PATCH] Revert "Add "move to recycle bin without confirmation" setting" This reverts commit de44764efa42fa08d7191d08d07a8f16f7b33380. --- src/core/Config.cpp | 1 - src/core/Config.h | 1 - src/gui/ApplicationSettingsWidget.cpp | 4 ---- src/gui/ApplicationSettingsWidgetSecurity.ui | 7 ------- src/gui/DatabaseWidget.cpp | 2 -- 5 files changed, 15 deletions(-) diff --git a/src/core/Config.cpp b/src/core/Config.cpp index 8b2b16cf1..ce5754428 100644 --- a/src/core/Config.cpp +++ b/src/core/Config.cpp @@ -138,7 +138,6 @@ static const QHash configStrings = { {Config::Security_ResetTouchId, {QS("Security/ResetTouchId"), Roaming, false}}, {Config::Security_ResetTouchIdTimeout, {QS("Security/ResetTouchIdTimeout"), Roaming, 30}}, {Config::Security_ResetTouchIdScreenlock,{QS("Security/ResetTouchIdScreenlock"), Roaming, true}}, - {Config::Security_NoConfirmMoveEntryToRecycleBin,{QS("Security/NoConfirmMoveEntryToRecycleBin"), Roaming, true}}, // Browser {Config::Browser_Enabled, {QS("Browser/Enabled"), Roaming, false}}, diff --git a/src/core/Config.h b/src/core/Config.h index 8b9a02a5f..553804699 100644 --- a/src/core/Config.h +++ b/src/core/Config.h @@ -119,7 +119,6 @@ public: Security_ResetTouchId, Security_ResetTouchIdTimeout, Security_ResetTouchIdScreenlock, - Security_NoConfirmMoveEntryToRecycleBin, Browser_Enabled, Browser_ShowNotification, diff --git a/src/gui/ApplicationSettingsWidget.cpp b/src/gui/ApplicationSettingsWidget.cpp index 182dcd052..09fb0515d 100644 --- a/src/gui/ApplicationSettingsWidget.cpp +++ b/src/gui/ApplicationSettingsWidget.cpp @@ -280,8 +280,6 @@ void ApplicationSettingsWidget::loadSettings() m_secUi->passwordsRepeatVisibleCheckBox->setChecked( config()->get(Config::Security_PasswordsRepeatVisible).toBool()); m_secUi->hideNotesCheckBox->setChecked(config()->get(Config::Security_HideNotes).toBool()); - m_secUi->NoConfirmMoveEntryToRecycleBinCheckBox->setChecked( - config()->get(Config::Security_NoConfirmMoveEntryToRecycleBin).toBool()); m_secUi->touchIDResetCheckBox->setChecked(config()->get(Config::Security_ResetTouchId).toBool()); m_secUi->touchIDResetSpinBox->setValue(config()->get(Config::Security_ResetTouchIdTimeout).toInt()); @@ -381,8 +379,6 @@ void ApplicationSettingsWidget::saveSettings() config()->set(Config::Security_HidePasswordPreviewPanel, m_secUi->passwordPreviewCleartextCheckBox->isChecked()); config()->set(Config::Security_PasswordsRepeatVisible, m_secUi->passwordsRepeatVisibleCheckBox->isChecked()); config()->set(Config::Security_HideNotes, m_secUi->hideNotesCheckBox->isChecked()); - config()->set(Config::Security_NoConfirmMoveEntryToRecycleBin, - m_secUi->NoConfirmMoveEntryToRecycleBinCheckBox->isChecked()); config()->set(Config::Security_ResetTouchId, m_secUi->touchIDResetCheckBox->isChecked()); config()->set(Config::Security_ResetTouchIdTimeout, m_secUi->touchIDResetSpinBox->value()); diff --git a/src/gui/ApplicationSettingsWidgetSecurity.ui b/src/gui/ApplicationSettingsWidgetSecurity.ui index b338ffa86..bd4af19fa 100644 --- a/src/gui/ApplicationSettingsWidgetSecurity.ui +++ b/src/gui/ApplicationSettingsWidgetSecurity.ui @@ -257,13 +257,6 @@ - - - - Move entries to recycle bin without confirmation - - - diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index ef1ed68ea..c96b2a6bd 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -571,8 +571,6 @@ bool DatabaseWidget::confirmDeleteEntries(QList 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) {