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:
Eike Ziller
2014-02-18 12:47:38 +01:00
parent 946353b30d
commit 0be57cb505

View File

@@ -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)