Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
34c1c10c
Commit
34c1c10c
authored
Aug 02, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/plugins/cpptools/cppcodecompletion.cpp
src/plugins/cpptools/cppcodecompletion.cpp
+2
-3
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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