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

Not necessary to use QPointer

parent a9a688a0
Pipeline #68580 canceled with stage
......@@ -7,7 +7,6 @@
#include "confirmbeforedeletingplugin.h"
#include "confirmbeforedeletingdialog.h"
#include <KPluginFactory>
#include <QPointer>
K_PLUGIN_CLASS_WITH_JSON(ConfirmBeforeDeletingPlugin, "kmail_confirmbeforedeletingplugin.json")
......@@ -22,11 +21,8 @@ ConfirmBeforeDeletingPlugin::~ConfirmBeforeDeletingPlugin()
void ConfirmBeforeDeletingPlugin::showConfigureDialog(QWidget *parent)
{
QPointer<ConfirmBeforeDeletingDialog> dlg = new ConfirmBeforeDeletingDialog(parent);
if (dlg->exec()) {
// TODO save element
}
delete dlg;
ConfirmBeforeDeletingDialog dlg(parent);
dlg.exec();
}
#include "confirmbeforedeletingplugin.moc"
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