diff --git a/src/plugins/texteditor/codeassist/genericproposalwidget.cpp b/src/plugins/texteditor/codeassist/genericproposalwidget.cpp
index 8ee8e26dc4bc2f2b6ffe5fe00fba35a7c225180f..7ed8e665809ee27dd1d99de66fa7833f1b39f8d6 100644
--- a/src/plugins/texteditor/codeassist/genericproposalwidget.cpp
+++ b/src/plugins/texteditor/codeassist/genericproposalwidget.cpp
@@ -425,7 +425,7 @@ bool GenericProposalWidget::updateAndCheck(const QString &prefix)
     if (!prefix.isEmpty())
         m_d->m_model->filter(prefix);
     if (m_d->m_model->size() == 0
-            || (m_d->m_reason == IdleEditor && hasMatch(prefix, m_d->m_model))) {
+            || (m_d->m_reason != ExplicitlyInvoked && hasMatch(prefix, m_d->m_model))) {
         abort();
         return false;
     }