forked from qt-creator/qt-creator
CppEditor: Fix target of symbol drop-down
It was jumping to the symbol location in the active editor instead of the editor for the combo box. Task-number: QTCREATORBUG-11157 Change-Id: Ic261f2dd214c15ff41c8342a6ef72626b7db0f86 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -1046,7 +1046,9 @@ void CPPEditorWidget::jumpToOutlineElement(int index)
|
||||
if (!symbol)
|
||||
return;
|
||||
|
||||
openCppEditorAt(linkToSymbol(symbol));
|
||||
const Link &link = linkToSymbol(symbol);
|
||||
gotoLine(link.targetLine, link.targetColumn);
|
||||
Core::EditorManager::activateEditor(editor());
|
||||
}
|
||||
|
||||
void CPPEditorWidget::setSortedOutline(bool sort)
|
||||
|
||||
Reference in New Issue
Block a user