forked from qt-creator/qt-creator
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:
committed by
Leandro T. C. Melo
parent
1e7c75470c
commit
4959f53d2c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user