Commit ab1bd56d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use action texts for buttons of confirmation dialog

parent af176d47
......@@ -1124,7 +1124,11 @@ void AppearancePageMessageTagTab::slotRemoveTag()
const int tmp_index = mTagListBox->currentRow();
if (tmp_index >= 0) {
if (KMessageBox::Yes
== KMessageBox::questionYesNo(this, i18n("Do you want to remove tag \'%1\'?", mTagListBox->item(mTagListBox->currentRow())->text()))) {
== KMessageBox::questionYesNo(this,
i18n("Do you want to remove tag \'%1\'?", mTagListBox->item(mTagListBox->currentRow())->text()),
i18nc("@title:window", "Remove Tag"),
KStandardGuiItem::remove(),
KStandardGuiItem::cancel())) {
QListWidgetItem *item = mTagListBox->takeItem(mTagListBox->currentRow());
auto tagItem = static_cast<TagListWidgetItem *>(item);
MailCommon::Tag::Ptr tmp_desc = tagItem->kmailTag();
......
......@@ -2789,8 +2789,8 @@ void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method, Me
i18n("To: field is empty. "
"Send message anyway?"),
i18n("No To: specified"),
KStandardGuiItem::yes(),
KStandardGuiItem::no());
KGuiItem(i18n("S&end as Is")),
KGuiItem(i18n("&Specify the To field")));
if (rc == 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