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

Fix Bug 383937 - Pressing Skip on spell checker leads to immediate sending of mail

FIXED-IN: 5.6.1
BUG: 383937
parent 6f2382c6
......@@ -447,7 +447,9 @@ void RichTextEditor::checkSpelling(bool force)
QPushButton *skipButton = new QPushButton(i18n("Skip"));
buttonBox->addButton(skipButton, QDialogButtonBox::ActionRole);
connect(skipButton, &QPushButton::clicked, spellDialog, &Sonnet::Dialog::close);
if (force) {
connect(skipButton, &QPushButton::clicked, this, &RichTextEditor::spellCheckingFinished);
}
} else {
qCWarning(KPIMTEXTEDIT_LOG) << " Impossible to find qdialogbuttonbox";
}
......
Markdown is supported
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