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
Tobias Hunger
qt-creator
Commits
a2b51841
Commit
a2b51841
authored
Oct 26, 2009
by
Roberto Raggi
Browse files
Activate the completion only when the canonical symbol has a valid name.
parent
3c0ca8c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
a2b51841
...
...
@@ -762,10 +762,6 @@ void CPPEditor::findUsages()
void
CPPEditor
::
renameUsages
()
{
Core
::
EditorManager
::
instance
()
->
showEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
),
tr
(
"This change cannot be undone."
),
tr
(
"Yes, I know what I am doing."
),
this
,
SLOT
(
hideRenameNotification
()));
renameUsagesNow
();
}
...
...
@@ -777,7 +773,14 @@ void CPPEditor::hideRenameNotification()
void
CPPEditor
::
renameUsagesNow
()
{
if
(
Symbol
*
canonicalSymbol
=
markSymbols
())
{
m_modelManager
->
renameUsages
(
canonicalSymbol
);
if
(
canonicalSymbol
->
identifier
()
!=
0
)
{
Core
::
EditorManager
::
instance
()
->
showEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
),
tr
(
"This change cannot be undone."
),
tr
(
"Yes, I know what I am doing."
),
this
,
SLOT
(
hideRenameNotification
()));
m_modelManager
->
renameUsages
(
canonicalSymbol
);
}
}
}
...
...
src/plugins/cpptools/cppfindreferences.cpp
View file @
a2b51841
...
...
@@ -656,6 +656,9 @@ void CppFindReferences::renameUsages(Symbol *symbol)
void
CppFindReferences
::
findAll_helper
(
Symbol
*
symbol
)
{
if
(
!
(
symbol
&&
symbol
->
identifier
()))
return
;
_resultWindow
->
popup
(
true
);
const
Snapshot
snapshot
=
_modelManager
->
snapshot
();
...
...
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