Commit 125280b1 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused lib + don't use QPointer here

parent 6570c7eb
Pipeline #36572 failed with stage
in 60 minutes and 9 seconds
......@@ -36,9 +36,8 @@ bool AutomaticAddContactsPlugin::hasConfigureDialog() const
void AutomaticAddContactsPlugin::showConfigureDialog(QWidget *parent)
{
QPointer<AutomaticAddContactsConfigureDialog> dlg = new AutomaticAddContactsConfigureDialog(parent);
dlg->exec();
delete dlg;
AutomaticAddContactsConfigureDialog dlg(parent);
dlg.exec();
}
#include "automaticaddcontactsplugin.moc"
......@@ -11,7 +11,7 @@ macro(add_kmail_automaticaddscontacts_unittest _source _additional)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_editorplugin-${_name})
target_link_libraries( ${_name} Qt5::Test KF5::MessageComposer KF5::I18n KF5::PimCommon KF5::AkonadiContact KF5::Libkdepim)
target_link_libraries( ${_name} Qt5::Test KF5::MessageComposer KF5::I18n KF5::PimCommon KF5::AkonadiContact)
endmacro ()
if (KDEPIM_RUN_AKONADI_TEST)
......
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