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

Use action texts for buttons of account removal confirmation dialog

parent 8c8d2c33
Pipeline #94064 passed with stage
in 14 minutes
...@@ -196,7 +196,11 @@ void ManageAccountWidget::slotRemoveSelectedAccount() ...@@ -196,7 +196,11 @@ void ManageAccountWidget::slotRemoveSelectedAccount()
{ {
const Akonadi::AgentInstance instance = d->ui.mAccountList->currentAgentInstance(); const Akonadi::AgentInstance instance = d->ui.mAccountList->currentAgentInstance();
const int rc = KMessageBox::questionYesNo(this, i18n("Do you want to remove account '%1'?", instance.name()), i18n("Remove account?")); const int rc = KMessageBox::questionYesNo(this,
i18n("Do you want to remove account '%1'?", instance.name()),
i18n("Remove account?"),
KStandardGuiItem::remove(),
KStandardGuiItem::cancel());
if (rc == KMessageBox::No) { if (rc == KMessageBox::No) {
return; 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