Commit 4959f53d authored by Leandro Melo's avatar Leandro Melo Committed by Leandro T. C. Melo

Completion: Apply perfect match whenever not invoked explicitly

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/130Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent 1e7c7547
......@@ -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;
}
......
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