diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index cb6a531e696..9520ea4a91f 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -2621,10 +2621,9 @@ bool TextEditorWidget::event(QEvent *e) return QPlainTextEdit::event(e); // FIXME: That's far too heavy, and triggers e.g for ChildEvent - switch (e->type()) { - case QEvent::InputMethodQuery: + if (e->type() != QEvent::InputMethodQuery) d->m_contentsChanged = false; - break; + switch (e->type()) { case QEvent::ShortcutOverride: if (static_cast(e)->key() == Qt::Key_Escape && d->m_snippetOverlay->isVisible()) { e->accept();