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
KLDAP
Commits
73104147
Commit
73104147
authored
Nov 05, 2021
by
Friedrich W. H. Kossebau
Browse files
Use action texts for buttons of confirmation dialog
parent
d32fd714
Pipeline
#95331
canceled with stage
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
src/widgets/ldapconfigurewidget.cpp
View file @
73104147
...
...
@@ -109,8 +109,12 @@ void LdapConfigureWidget::slotRemoveHost()
return
;
}
auto
ldapItem
=
dynamic_cast
<
LdapWidgetItem
*>
(
item
);
if
(
KMessageBox
::
No
==
KMessageBox
::
questionYesNo
(
this
,
i18n
(
"Do you want to remove setting for host
\"
%1
\"
?"
,
ldapItem
->
server
().
host
()),
i18n
(
"Remove Host"
)))
{
const
int
answer
=
KMessageBox
::
questionYesNo
(
this
,
i18n
(
"Do you want to remove setting for host
\"
%1
\"
?"
,
ldapItem
->
server
().
host
()),
i18n
(
"Remove Host"
),
KStandardGuiItem
::
remove
(),
KStandardGuiItem
::
cancel
());
if
(
answer
==
KMessageBox
::
No
)
{
return
;
}
...
...
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