Commit 73104147 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use action texts for buttons of confirmation dialog

parent d32fd714
Pipeline #95331 canceled with stage
......@@ -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;
}
......
Supports Markdown
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