Commit d739af84 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Create dialog on stack directly

parent 418cbffe
Pipeline #154022 failed with stage
in 5 minutes and 4 seconds
......@@ -38,9 +38,8 @@ void KMLaunchExternalComponent::slotConfigureAutomaticArchiving()
auto agent = Akonadi::AgentManager::self()->instance(QStringLiteral("akonadi_archivemail_agent"));
if (agent.isValid()) {
QPointer<Akonadi::AgentConfigurationDialog> dlg = new Akonadi::AgentConfigurationDialog(agent, mParentWidget);
delete dlg;
Akonadi::AgentConfigurationDialog dlg(agent, mParentWidget);
} else {
KMessageBox::error(mParentWidget, i18n("Archive Mail Agent was not registered."));
Supports Markdown
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