Skip to content
GitLab
Menu
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
71fe3435
Commit
71fe3435
authored
Mar 18, 2009
by
mae
Browse files
when jumping to methods in the same file, stay in the same editor (split corner case)
parent
3b030572
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
71fe3435
...
...
@@ -977,5 +977,14 @@ bool CPPEditor::openEditorAt(Symbol *s)
if
(
s
->
isGenerated
())
column
=
0
;
if
(
baseTextDocument
()
->
fileName
()
==
fileName
)
{
Core
::
EditorManager
*
editorManager
=
Core
::
EditorManager
::
instance
();
editorManager
->
addCurrentPositionToNavigationHistory
(
true
);
gotoLine
(
line
,
column
);
editorManager
->
addCurrentPositionToNavigationHistory
();
setFocus
();
return
true
;
}
return
openCppEditorAt
(
fileName
,
line
,
column
);
}
Write
Preview
Supports
Markdown
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