Avoid retriggering the completion box when it's already there

There should be no need for the text editor to request an update of the
completion box, since when it's there it will have focus and update
itself.

Reviewed-by: Roberto Raggi
This commit is contained in:
Thorbjørn Lindeijer
2010-08-03 14:29:28 +02:00
parent f088ba71d5
commit dace83badc
3 changed files with 11 additions and 0 deletions

View File

@@ -1415,6 +1415,9 @@ void BaseTextEditor::_q_requestAutoCompletion()
{
d->m_requestAutoCompletionTimer->stop();
if (CompletionSupport::instance()->isActive())
return;
if (d->m_requestAutoCompletionRevision == document()->revision() &&
d->m_requestAutoCompletionPosition == position())
emit requestAutoCompletion(editableInterface(), false);