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
PIM MailCommon
Commits
672657fd
Commit
672657fd
authored
Nov 05, 2021
by
Friedrich W. H. Kossebau
Browse files
Use action texts for buttons of confirmation dialog
parent
bbb3c562
Pipeline
#94374
passed with stage
in 29 minutes and 25 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/filter/kmfilterlistbox.cpp
View file @
672657fd
...
...
@@ -461,15 +461,12 @@ void KMFilterListBox::slotDelete()
auto
itemFilter
=
static_cast
<
QListWidgetFilterItem
*>
(
itemFirst
);
MailCommon
::
MailFilter
*
filter
=
itemFilter
->
filter
();
const
QString
filterName
=
filter
->
pattern
()
->
name
();
if
(
uniqFilterSelected
)
{
if
(
KMessageBox
::
questionYesNo
(
this
,
i18n
(
"Do you want to remove the filter
\"
%1
\"
?"
,
filterName
),
i18n
(
"Remove Filter"
))
==
KMessageBox
::
No
)
{
return
;
}
}
else
{
if
(
KMessageBox
::
questionYesNo
(
this
,
i18n
(
"Do you want to remove selected filters?"
),
i18n
(
"Remove Filters"
))
==
KMessageBox
::
No
)
{
return
;
}
const
QString
question
=
uniqFilterSelected
?
i18n
(
"Do you want to remove the filter
\"
%1
\"
?"
,
filter
->
pattern
()
->
name
())
:
i18n
(
"Do you want to remove selected filters?"
);
const
QString
dialogTitle
=
uniqFilterSelected
?
i18n
(
"Remove Filter"
)
:
i18n
(
"Remove Filters"
);
const
int
answer
=
KMessageBox
::
questionYesNo
(
this
,
question
,
dialogTitle
,
KStandardGuiItem
::
remove
(),
KStandardGuiItem
::
cancel
());
if
(
answer
==
KMessageBox
::
No
)
{
return
;
}
const
int
oIdxSelItem
=
mListWidget
->
currentRow
();
...
...
Write
Preview
Supports
Markdown
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