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/130
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Leandro Melo
2011-05-26 11:07:41 +02:00
committed by Leandro T. C. Melo
parent 1e7c75470c
commit 4959f53d2c

View File

@@ -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;
}