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

Use action texts for buttons of confirmation dialog

parent 824dd63d
Pipeline #94375 canceled with stage
......@@ -436,7 +436,12 @@ void RichTextEditor::checkSpelling(bool force)
auto backgroundSpellCheck = new Sonnet::BackgroundChecker;
if (backgroundSpellCheck->speller().availableBackends().isEmpty()) {
if (force) {
if (KMessageBox::Yes == KMessageBox::questionYesNo(this, i18n("No backend available for spell checking. Do you want to send the email anyways?"))) {
const int answer = KMessageBox::questionYesNo(this,
i18n("No backend available for spell checking. Do you want to send the email anyways?"),
QString(),
KGuiItem(i18nc("@action:button", "Send"), QStringLiteral("mail-send")),
KStandardGuiItem::cancel());
if (answer == KMessageBox::Yes) {
Q_EMIT spellCheckingFinished();
}
} else {
......
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