Commit 1d333790 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix logic + load rules

parent e8d45a6e
Pipeline #69042 canceled with stage
in 30 minutes and 55 seconds
...@@ -23,7 +23,7 @@ Akonadi::Item::List ConfirmBeforeDeletingInterface::exec(const Akonadi::Item::Li ...@@ -23,7 +23,7 @@ Akonadi::Item::List ConfirmBeforeDeletingInterface::exec(const Akonadi::Item::Li
for (const auto &item : list) { for (const auto &item : list) {
if (ConfirmBeforeDeletingManager::self()->deletingNeedToConfirm(item)) { if (ConfirmBeforeDeletingManager::self()->deletingNeedToConfirm(item)) {
// Use subject ? // Use subject ?
if (KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to delete this email?"), i18n("Confirm Delete Mail")) == KMessageBox::No) { if (KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to delete this email?"), i18n("Confirm Delete Mail")) == KMessageBox::Yes) {
lst << item; lst << item;
} }
} else { } else {
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
ConfirmBeforeDeletingManager::ConfirmBeforeDeletingManager(QObject *parent) ConfirmBeforeDeletingManager::ConfirmBeforeDeletingManager(QObject *parent)
: QObject(parent) : QObject(parent)
{ {
loadRules();
} }
ConfirmBeforeDeletingManager::~ConfirmBeforeDeletingManager() ConfirmBeforeDeletingManager::~ConfirmBeforeDeletingManager()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment