Skip to content
GitLab
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
f8589831
Commit
f8589831
authored
Aug 13, 2021
by
Laurent Montel
Browse files
const'ify variable
parent
4aa632d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/confirmbeforedeletinginterface.cpp
View file @
f8589831
...
...
@@ -40,7 +40,7 @@ Akonadi::Item::List ConfirmBeforeDeletingInterface::exec(const Akonadi::Item::Li
QPointer
<
ConfirmBeforeDeletingMessageBoxDialog
>
dlg
=
new
ConfirmBeforeDeletingMessageBoxDialog
(
parentWidget
());
dlg
->
setInfo
(
i18n
(
"Do you want to delete this email?
\n
%1"
,
checkFoundStr
));
const
int
result
=
dlg
->
exec
();
auto
button
=
static_cast
<
QDialogButtonBox
::
StandardButton
>
(
result
);
const
auto
button
=
static_cast
<
QDialogButtonBox
::
StandardButton
>
(
result
);
if
(
button
==
QDialogButtonBox
::
StandardButton
::
Yes
)
{
lst
<<
item
;
if
(
dlg
->
useSameResult
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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