Commit d8477a47 authored by hjk's avatar hjk
Browse files

debugger: hot fix for stepping on the same line

parent 8b583a38
......@@ -1348,7 +1348,7 @@ void DebuggerManager::jumpToLineExec()
void DebuggerManager::resetLocation()
{
// connected to the plugin
// Connected to the plugin.
emit resetLocationRequested();
}
......@@ -1359,14 +1359,8 @@ void DebuggerManager::gotoLocation(const Debugger::Internal::StackFrame &frame,
if (setMarker)
resetLocation();
} else {
static QString lastFile;
static int lastLine;
if (frame.line != lastLine || frame.file != lastFile) {
lastLine = frame.line;
lastFile = frame.file;
// Connected to the plugin.
emit gotoLocationRequested(lastFile, lastLine, setMarker);
}
// Connected to the plugin.
emit gotoLocationRequested(frame.file, frame.line, setMarker);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment