This should not only be when the editor is idle but whenever the
completion was not invoked explicitly.
Change-Id: I0f3dbbe2f5db66ae3e1f57c7039a93f74f31e1dc
Reviewed-on: http://codereview.qt.nokia.com/130
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
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;
}