Get rid of the automatic completion box when its only entry is the symbol under cursor.

This commit is contained in:
Roberto Raggi
2010-08-02 11:41:05 +02:00
parent 29c304bdf5
commit 34c1c10cc0

View File

@@ -1726,9 +1726,8 @@ void CppCodeCompletion::completions(QList<TextEditor::CompletionItem> *completio
}
}
if (completions->size() == 1) {
if (key == completions->first().text)
completions->clear();
if (m_automaticCompletion && completions->size() == 1 && key == completions->first().text) {
completions->clear();
}
}