forked from qt-creator/qt-creator
debugger: introduce the concept of a 'Location', used by gotoLocation
This commit is contained in:
@@ -1240,8 +1240,9 @@ public slots:
|
||||
// Go to source only if we have the file.
|
||||
if (currentEngine()->stackHandler()->currentIndex() >= 0) {
|
||||
const StackFrame frame = currentEngine()->stackHandler()->currentFrame();
|
||||
if (operateByInstructionTriggered || frame.isUsable())
|
||||
currentEngine()->gotoLocation(frame, true);
|
||||
if (operateByInstructionTriggered || frame.isUsable()) {
|
||||
currentEngine()->gotoLocation(Location(frame, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user