Commit c1ee5b5f authored by Laurent Montel's avatar Laurent Montel
Browse files

Create on stack

parent 2b0c2e9c
Pipeline #219888 passed with stage
in 24 minutes and 25 seconds
......@@ -53,8 +53,7 @@ PimCommon::GenericPluginInterface::RequireTypes MergeContactsPluginInterface::re
void MergeContactsPluginInterface::exec()
{
QPointer<KABMergeContacts::MergeContactsDialog> dlg = new KABMergeContacts::MergeContactsDialog(parentWidget());
dlg->setContacts(mListItems);
dlg->exec();
delete dlg;
KABMergeContacts::MergeContactsDialog dlg(parentWidget());
dlg.setContacts(mListItems);
dlg.exec();
}
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