Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
34c1c10c
Commit
34c1c10c
authored
Aug 02, 2010
by
Roberto Raggi
Browse files
Get rid of the automatic completion box when its only entry is the symbol under cursor.
parent
29c304bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
34c1c10c
...
...
@@ -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
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment