Commit 77e727c5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't verify when key is empty

parent 90d8f91e
......@@ -128,9 +128,11 @@ void DKIMManager::storeInKeyManager(const QString &key, const QString &domain, c
const MessageViewer::KeyInfo info {key, selector, domain};
if (verify) {
const QString keyStored = MessageViewer::DKIMManagerKey::self()->keyValue(selector, domain);
if (keyStored != key) {
if (KMessageBox::No == KMessageBox::warningYesNo(nullptr, i18n("Stored DKIM key is different from the current one. Do you want to store this one too?"), i18n("Key Changed"))) {
return;
if (!keyStored.isEmpty()) {
if (keyStored != key) {
if (KMessageBox::No == KMessageBox::warningYesNo(nullptr, i18n("Stored DKIM key is different from the current one. Do you want to store this one too?"), i18n("Key Changed"))) {
return;
}
}
}
}
......
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