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

Fix Bug 354055 - system freeze when trying to send email via ctrl + return...

Fix Bug 354055 - system freeze when trying to send email via ctrl + return with "spellcheck before send" activated

FIXED-IN: 5.4.0
BUG: 354055
parent 792f18bf
......@@ -394,7 +394,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
connect(editor, &KMComposerEditorNg::languageChanged, this, &KMComposerWin::slotDictionaryLanguageChanged);
connect(editor, &KMComposerEditorNg::spellCheckStatus, this, &KMComposerWin::slotSpellCheckingStatus);
connect(editor, &KMComposerEditorNg::insertModeChanged, this, &KMComposerWin::slotOverwriteModeChanged);
connect(editor, &KMComposerEditorNg::spellCheckingFinished, this, &KMComposerWin::slotCheckSendNow);
connect(editor, &KMComposerEditorNg::spellCheckingFinished, this, &KMComposerWin::slotDelayedCheckSendNow);
mSnippetWidget = new SnippetWidget(editor, actionCollection(), mSnippetSplitter);
mSnippetWidget->setVisible(KMailSettings::self()->showSnippetManager());
mSnippetSplitter->addWidget(mSnippetWidget);
......@@ -2725,6 +2725,11 @@ void KMComposerWin::slotCheckSendNowStep2()
}
}
void KMComposerWin::slotDelayedCheckSendNow()
{
QTimer::singleShot(0, this, &KMComposerWin::slotCheckSendNow);
}
void KMComposerWin::slotCheckSendNow()
{
PotentialPhishingEmailJob *job = new PotentialPhishingEmailJob(this);
......
......@@ -419,6 +419,7 @@ private Q_SLOTS:
void slotRecipientFocusLost(MessageComposer::RecipientLineNG *line);
void slotKeyForMailBoxResult(const GpgME::KeyListResult &result, const GpgME::Key &key, const GpgME::UserID &userID);
void slotDelayedCheckSendNow();
public: // kmcommand
void addAttach(KMime::Content *msgPart) Q_DECL_OVERRIDE;
......
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