Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
f145ea47
Commit
f145ea47
authored
Jul 05, 2021
by
Laurent Montel
😁
Browse files
Not necessary to use QPointer
parent
a9a688a0
Pipeline
#68580
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/confirmbeforedeletingplugin.cpp
View file @
f145ea47
...
...
@@ -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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment