Scroll to the active function, when selected manually.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31380 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a244fc3ac7
commit
64af5c7164
@ -527,6 +527,14 @@ TeamWindow::_SetActiveSourceCode(SourceCode* sourceCode)
|
|||||||
fActiveSourceCode->AddReference();
|
fActiveSourceCode->AddReference();
|
||||||
|
|
||||||
fSourceView->SetSourceCode(fActiveSourceCode);
|
fSourceView->SetSourceCode(fActiveSourceCode);
|
||||||
|
|
||||||
|
// Scroll to the active function, if it doesn't match the stack frame (i.e.
|
||||||
|
// has been selected manually).
|
||||||
|
if (fActiveFunction != NULL && fActiveSourceCode != NULL
|
||||||
|
&& (fActiveStackFrame == NULL
|
||||||
|
|| fActiveStackFrame->Function() != fActiveFunction)) {
|
||||||
|
fSourceView->ScrollToAddress(fActiveFunction->Address());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user