Commit 9e94259e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up check

parent 8da9e0e3
......@@ -43,14 +43,15 @@ ConfirmAddressInterface::~ConfirmAddressInterface()
bool ConfirmAddressInterface::exec(const MessageComposer::PluginEditorCheckBeforeSendParams &params)
{
if (mEnabled) {
// not configurated => validate it.
if (!mHashSettings.contains(params.identity())) {
if (params.addresses().isEmpty()) {
return true;
}
// not configurated => validate it.
const ConfirmAddressSettings settings = mHashSettings.value(params.identity());
if (settings.mDomains.isEmpty() && settings.mWhiteLists.isEmpty()) {
return true;
}
#ifdef USE_PLUGIN
QPointer<ConfirmAddressDialog> dlg = new ConfirmAddressDialog(parentWidget());
//TODO use params
......
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